jira

Atlassian JIRA Plugin Development: How to make variables available to velocity templates

Deadly 提交于 2019-12-19 14:37:23
问题 FAIR WARNING: this question is going to be pretty tough to answer unless you have experience with JIRA and have access to their source (enterprise users). Greetings all, I am writing a plugin which extends AbstractIssueSelectAction. I noticed that ${issue.summary} , etc are all available from within my velocity template, however, there are other things I wish to expose. I can't figure out how to add other things to the velocity parameter map. I even used a remote debugger to try to step

Login to jira soap api

坚强是说给别人听的谎言 提交于 2019-12-19 03:26:06
问题 I try use jira soap api on c#: create new project in VS2010 add web service reference (JiraTest): http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl write next code: static void Main(string[] args) { var jiraLogin = "soaptester"; var jiraPassword = "soaptester"; var jiraClient = new JiraTest.JiraSoapServiceClient(); var projects = jiraClient.getProjects(); } But this code throw exepition that I'm not autentificate yet. I try find login method, but it have next signature: public void

Configuring the Atlassian JIRA plugin to work with Jenkins CI system

最后都变了- 提交于 2019-12-19 02:51:09
问题 I am trying to configure the JIRA plugin with Jenkins but I am receiving the error "This is a valid URL but it doesn't look like JIRA". I am trying to connect to my company installation of JIRA studio which is http://[company].jira.com and I know this URL is correct as I have several projects using it successfully. Is there some setting I should enable in JIRA studio for this to work? 回答1: I had a similar issue and fixed it by setting our JIRA studio Title to "Atlassian JIRA". You can change

Filter to show sub tasks of a filtered list of parent tasks

妖精的绣舞 提交于 2019-12-18 18:50:17
问题 I have a JIRA filter which returns all the fixes in a future release: project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set. I have tried the parent filter but this only accepts Key or ID. Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3

Filter to show sub tasks of a filtered list of parent tasks

↘锁芯ラ 提交于 2019-12-18 18:50:14
问题 I have a JIRA filter which returns all the fixes in a future release: project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set. I have tried the parent filter but this only accepts Key or ID. Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3

How to POST attachment to JIRA using REST API?

穿精又带淫゛_ 提交于 2019-12-18 15:51:41
问题 How to POST attachment to JIRA using JIRA REST API and HttpWebRequest in C#? From the documentation under /rest/api/2/issue/{issueIdOrKey}/attachments: POST Add one or more attachments to an issue. This resource expects a multipart post. The media-type multipart/form-data is defined in RFC 1867. Most client libraries have classes that make dealing with multipart posts simple. For instance, in Java the Apache HTTP Components library provides a MultiPartEntity that makes it simple to submit a

Access specific information within worklogs in jira-python

折月煮酒 提交于 2019-12-18 08:52:56
问题 How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error: AttributeError: type object 'PropertyHolder' has no attribute 'worklog' . If I create a jira client and do jira_client.worklogs(ticket.key) in my python code, it returns a list of Worklogs and their ids but I don't know what to do with that. I see in the

Access specific information within worklogs in jira-python

廉价感情. 提交于 2019-12-18 08:52:30
问题 How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error: AttributeError: type object 'PropertyHolder' has no attribute 'worklog' . If I create a jira client and do jira_client.worklogs(ticket.key) in my python code, it returns a list of Worklogs and their ids but I don't know what to do with that. I see in the

Add Attachment to Jira via REST API

こ雲淡風輕ζ 提交于 2019-12-18 04:24:08
问题 I'm trying to post an attachment o JIRA using the latest REST API. Here's my code: public boolean addAttachmentToIssue(String issueKey, String path){ String auth = new String(org.apache.commons.codec.binary.Base64.encodeBase64((user+":"+pass).getBytes())); Client client = Client.create(); WebResource webResource = client.resource(baseURL+"issue/"+issueKey+"/attachments"); FormDataMultiPart formDataMultiPart = new FormDataMultiPart(); File f = new File(path); if(f.exists() && f.isFile()){

Add Attachment to Jira via REST API

Deadly 提交于 2019-12-18 04:24:00
问题 I'm trying to post an attachment o JIRA using the latest REST API. Here's my code: public boolean addAttachmentToIssue(String issueKey, String path){ String auth = new String(org.apache.commons.codec.binary.Base64.encodeBase64((user+":"+pass).getBytes())); Client client = Client.create(); WebResource webResource = client.resource(baseURL+"issue/"+issueKey+"/attachments"); FormDataMultiPart formDataMultiPart = new FormDataMultiPart(); File f = new File(path); if(f.exists() && f.isFile()){