Zubaidullo's Blog
I wanted to work with JIRA with making my own App. Searched how to use it with best way. Finally, stopped on JIRA REST Java Client. It's easy for use for Java users.
Maven dependency: <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client</artifactId> <version>0.6-m8</version> </dependency> Simple starting code: SearchResult searchResult = null; JerseyJiraRestClientFactory() factory = new JerseyJiraRestClientFactory(); URI jiraUri = new URI("http://example.com"); JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraUri, user,password); SearchResult searchResult = restClient.getSearchClient().searchJql(jql_filte, progressMonitor); //Here you can get Issues, Projects, etc. Iterable<BasicIssue> issues = searchResult.getIssues(); //Then you will take every issue from issues and get anything about issue.....
1 Comment
1/27/2023 09:49:23 pm
Very Informative blog. Thanks for sharing
Reply
Leave a Reply. |
AuthorJava developer and experienced Designer, Flash animator. Very good algorithmic programming skills. Participant of International Olympiads. Very good skilled in designing. Archives
September 2017
Categories |