jira-rest-client | JIRA REST client library for Java | REST library
kandi X-RAY | jira-rest-client Summary
kandi X-RAY | jira-rest-client Summary
JIRA REST client library for Java
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates an issue
- Add attachments to an issue
- Send a multi part
- Send a string to the web target
- Get a list of projects
- Check status
- Gets the resource
- Set the JIRA resource name
- Sets the started date
- Returns the started date
- Retrieves the issues for a given query
- Returns a JSON representation of this object
- Set custom field
- Deserialize a date
- Gets the issue id value
- Ordered by WorklogElement
- Set component components by string array
- To pretty json string
- Get Project details
- Gets a list of all the priorities
- Gets a list of all issue types
- Deserialize JSON data
- Disable SSL verification
- Get the logging feature
jira-rest-client Key Features
jira-rest-client Examples and Code Snippets
public void createIssue() throws JsonParseException, JsonMappingException, IOException, ConfigurationException {
Issue issue = new Issue();
IssueFields fields = new IssueFields();
fields.setProjectKey("TEST")
.setSummary("so
public void getIssue() throws IOException, ConfigurationException {
String issueKey = "TEST-833";
IssueService issueService = new IssueService();
Issue issue = issueService.getIssue(issueKey);
logger.info(issue.toPrettyJsonString());
// atta
public void uploadAttachments() throws IOException, ConfigurationException
{
Issue issue = new Issue();
issue.setKey("TEST-834");
issue.addAttachment(new File("c:\\Users\\lesstif\\attachment.png"));
issue.addAttachment("c:\\Users\\lesstif\\
Community Discussions
Trending Discussions on jira-rest-client
QUESTION
In the overview of the Jira Rest Java Client, Atlassian specify:
The Jira REST Java Client works with Jira Server, but not with Jira Cloud.
Is there a client library for the REST APIs of Jira cloud?
I can't find any open source libraries on the internet that are geared specifically towards using the Jira cloud REST APIs.
The following question seems to be implicitly asking the same thing as I am, but is explicitly focused on the existence of a POM: How to use JIRA REST client library?. So the answer there focuses on advise on usage of a POM found on Maven.
...ANSWER
Answered 2020-Mar-07 at 16:19I'm not aware of an open source client library for Jira Cloud (written in Java) and also a quick internet search does not provide any good results. But you can generate your own client since Atlassian is providing a Swagger/OpenAPI definition for their cloud REST API:
Then you can generate your own client using e.g. Swagger Codegen or OpenAPI Generator into your preferred language of choice. I quickly tried it out by myself using the OpenAPI Generator but it failed because of an error in the Swagger definition - if you're interested, you could try to fix it by yourself or report it in the Atlassian Developer Community.
About the Jira Rest Java Client
You can probably use the client for most of the Jira Cloud REST API endpoints as they are similar to Jira Server. However, keep in mind that there are a few smaller differences between Jira Cloud REST API and Jira Server REST API. For example, there are endpoints which only exist in Jira Cloud like Jira Expressions. Or endpoints which are deprecated and will be removed soon because they now require pagination request parameters, like filtering for projects. Also, the client does not support JWT authentication or OAuth but only Basic Authentication - but this may not be necessary in your situation, depends on your use case.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jira-rest-client
check latest released artifact version from maven Central Repository( )
add this dependency snippet into pom.xml. <dependency> <groupId>com.lesstif</groupId> <artifactId>jira-rest-api</artifactId> <version>EDIT_THIS</version> </dependency>
create jira-rest-client.properties file into directory in the CLASS PATH variable and set your jira host and auth infos. jira.server.url="https://your-jira.host.com" jira.user.id="jira-username" jira.user.pwd="jira-password"
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page