jira-rest-java-api

How to use JIRA REST client library?

冷暖自知 提交于 2020-05-15 09:07:18
问题 I need to use JIRA REST client version 5.2.0 or higher. Cloud JIRA does not work with an earlier version of the client. In my pom.xml file I have the following dependencies: <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-core</artifactId> <version>5.2.1</version> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-app</artifactId> <version>5.2.1</version> </dependency> When I building the project, I get an

How to use JIRA REST client library?

孤街浪徒 提交于 2020-05-15 09:06:31
问题 I need to use JIRA REST client version 5.2.0 or higher. Cloud JIRA does not work with an earlier version of the client. In my pom.xml file I have the following dependencies: <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-core</artifactId> <version>5.2.1</version> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-app</artifactId> <version>5.2.1</version> </dependency> When I building the project, I get an

How to use JIRA REST client library?

删除回忆录丶 提交于 2020-05-15 09:06:11
问题 I need to use JIRA REST client version 5.2.0 or higher. Cloud JIRA does not work with an earlier version of the client. In my pom.xml file I have the following dependencies: <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-core</artifactId> <version>5.2.1</version> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-app</artifactId> <version>5.2.1</version> </dependency> When I building the project, I get an

JRJC is throwing NoClassDefFound exceptions

人走茶凉 提交于 2019-12-24 05:46:10
问题 I am trying to use Jira Rest Java Client in my project. But not able to connect to my installed jira. While using the below code snippet: JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); JiraRestClient restClient =factory.createWithBasicHttpAuthentication(serverURI, "praveen", "Jira@123"); I am facing an error as stated below: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/nio/NHttpMessageParserFactory at org.apache.http.impl.nio.conn

How do I retrieve issues of specific status with JQL

放肆的年华 提交于 2019-12-21 20:43:23
问题 Entering a url, or running with curl, like: https://<myurl>/rest/api/2/search?jql=project=<myproject>&status=closed&fields=id,key,status,project&maxResults=5 returns me 5 items in my project but with all statuses. For some reason I can't query for a specific status. The output (part of it) is: { "expand": "schema,names", "startAt": 0, "maxResults": 5, "total": 727, "issues": [ { "expand": "editmeta,renderedFields,transitions,changelog,operations", "id": "79577", "self": "https://<myurl>/rest

JIRA rest api to fetch the activity stream

大憨熊 提交于 2019-12-13 15:14:01
问题 I am trying to get activity stream of my jira instance using the below api and it is not working , can anybody point me in the right direction ? 回答1: You should check this page out: https://developer.atlassian.com/docs/atlassian-platform-common-components/activity-streams/consuming-an-activity-streams-feed The Atom feed of the activity stream works well only if you also log in in your feed reader. 回答2: Here is an example of consuming the activity stream through the Jira API using Basic

Jira Python: Syntax error appears when trying to print

喜欢而已 提交于 2019-12-13 09:47:18
问题 from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues = jira.search_issues('jqlquery') for issue in issues: print issue I want to print the output of the jql query.However, getting syntax error on the last line "issue". 回答1: The way to print the issue keys to your command prompt is: from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues

Creating a new “JIRA issue” using REST API in java

邮差的信 提交于 2019-12-12 18:18:27
问题 Hey guys i am really struggling with this, i would like to create new JIRA issues using java through the REST API but every example i have seen is incomplete or doesnt work for me like this one: How to create an issue in jira using java rest api Any help, sample code or link to the right direction would be greatly appreciated! 回答1: I think this sample code is helps u This is totlly working for me public static String invokePostMethod() throws AuthenticationException, ClientHandlerException,

Worklog entries of an JIRA-user needs to be fetched

梦想的初衷 提交于 2019-12-12 04:55:51
问题 I have 15 usernames with me, I need to pull worklog entries of these users and manipulate it from JAVA client Below are the jar files am using to connect JIRA api and fetch values The code is pasted below public class JiraConnector { JiraRestClient jira; public JiraConnector() throws URISyntaxException { String url = prop().getUrl(); String userName = prop().getUser() ; String password = prop().getpwd() ; JerseyJiraRestClientFactory clientFactory = new JerseyJiraRestClientFactory(); jira =

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>