jira

How do I make JIRA notify a Java application about events?

不羁岁月 提交于 2019-12-11 16:00:01
问题 What special configuration do I have to do to make JIRA inform a Java application notified about issue changes (events)? I followed the instructions mentioned at JIRA Webhooks 回答1: You should expose HTTP endpoint in your Java application, and define in Jira the webhook configuration, for example: Name: "My webhook" URL: http://www.myremoteapp.com/webhookreceiver Scope: all issues Events: all issue events See Jira Webhook documentation here. 回答2: As I posted in my question, I did follow the

Maven, plugins, and JIRA

爷,独闯天下 提交于 2019-12-11 13:50:08
问题 I've been running through the hello world example from JIRA(https://developer.atlassian.com/display/DOCS/Getting+Started). Eclipse (Kepler) gives me a large list of errors in the pom for my project. Specifically on the first plugin tag. All of them are some variation of Plugin execution not covered by lifecycle configuration: com.atlassian.maven.plugins:maven-jira- plugin:4.2.10:filter-test-plugin-descriptor (execution: default-filter-test-plugin-descriptor, phase: process-test- resources)

CustomFieldManager is not getting the custom field after modifying the custom field name using REST api in jira

一世执手 提交于 2019-12-11 13:19:07
问题 I'm changing the custom field name using the REST api in JIRA. It is changing the custom field name suceessfully. But when I tried to get the custom filed in the code, I'm getting null as the result. String modByWhomCustomFieldName = pluginConfigService.getMUFCustomFieldName(); System.out.println("+++++++++++++++++++In flagCustomField() modByWhomCustomFieldName is:"+modByWhomCustomFieldName); //CustomField modByWhomCustomField = cfManager.getCustomFieldObjectByName("Description Changed By");

Python - JIRA - Modify Labels

笑着哭i 提交于 2019-12-11 12:54:02
问题 Having an issue updating / modifying a JIRA issue's labels. I've tried both of the below variations from the jira module documentation: issue.update(labels=['AAA', 'BBB']) OR issue.fields.labels.append(u'new_text') issue.update(fields={"labels": issue.fields.labels}) documentation With the last example I'm getting this error: JIRAError: JiraError HTTP 400 text: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown. url: https://jira.XXXXXXXXXX.com/rest/api/2/issue

Spring boot and Jira REST API give dependency errors in maven

北城余情 提交于 2019-12-11 12:49:23
问题 project main dependencies <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.2.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>

windows batch: echo a multi-line variable with special characters (JiraRelease Notes from jenkins)

独自空忆成欢 提交于 2019-12-11 12:27:17
问题 I am using the JiraPlugin in Jenkins to produe a ReleaseNotes and my build job in Jenkins uses batch files. In the executed batch file, when I just issue a set , I can see that the varibale exists with the Jira Release notes. But it is multi-line and starts with a # character. my goal is to do a echo %RELEASE_NOTES_JENKINS% > ReleaseNotes.txt but that never works. I tried using !! instead of %% around the variable but that also does not work. I get ECHO is off. when I try to echo the variable

JIRA Cloud REST API (OAuth 2.0) Error 403 on POST Requests

痴心易碎 提交于 2019-12-11 12:09:45
问题 I am trying to connect my React app to the Jira Cloud API and can't seem to get past a 403 error. My code currently does a Auth dance using OAuth 2.0 and returns the token and cloudid. I can use this to GET issues, however POST request (like creating an issue) return with 403. I have found here that this error is returned if the user does not have the necessary permission to access the resource or run the method. I have ensured the user has the correct scope ([write: jira-work, read: jira

How to remove an attachment using JIRA soap service

我的未来我决定 提交于 2019-12-11 12:05:24
问题 Reading the API I don't see any methods that can do this? http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html 回答1: Yes, it would need a custom SOAP plugin. Not too hard, just annoying that the method isn't there. ~Matt 回答2: SOAP doesn't support this, but you can do it via HTTP, e.g. (C#) using (System.Net.WebClient client = new System.Net.WebClient()) { string url = "http://jira-server/secure/DeleteAttachment.jspa

How to print a list of objects in a Velocity template?

泪湿孤枕 提交于 2019-12-11 10:33:03
问题 This is a pretty basic problem and I'm pretty sure I'm doing something wrong or making some assumption. Here goes. I'm writing a Jira plugin, which uses the Velocity template system. I have a list of ResultRow objects where ResultRow is a class with a single member variable: String key: public class ResultRow { public String key; } I have a list of these ResultRows: List<ResultRow> rows = new ArrayList<ResultRow>(); ResultRow row = new ResultRow(); row.key = "foo"; rows.add(foo); Map<String,

JIRA Plugins SDK: How to find out changed data?

我的梦境 提交于 2019-12-11 10:01:34
问题 I am using the JIRA plugins sdk to work on changed Issues. I´ve implemented an IssueListener and I have access to the Issue itself and the IssueEvent. How do I find out which property (summary, description, estimation ...) of my Issue has been changed ? 回答1: The changelog is likely to contain what's been changed and there is a method on the IssueEvent object to get this ( getChangeLog ) and it returns a GenericValue object. This post on the Atlassian Answers site gives some code related to an