It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

what Jira Java REST client should I use

Jorge Amat Apr 09, 2018

When I look for a jira java rest client, I find that I can use one of the following options available:

Atlassian JIRA REST Java Client » 2.0.0-m2:

https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client/2.0.0-m2

(last update done from Dec 2012)

or

JIRA REST Java Client Implementation » 5.0.4

https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core/5.0.4

along with

JIRA REST Java Client Public API » 5.0.4

https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-api/5.0.4

(last update done from Dec 2017 for both)

 

In principle, the jira-rest-java-client is more easy and clear to use and I just need to add only one dependency to my project, however:

Is there any actual difference between the two options, despite the last date update provided by maven? 

I have checked that in both cases you cannot create a Project, despite it is possible based on https://docs.atlassian.com/jira/REST/7.0.0-m01b/#api/2/project-createProject

What option should I go for?

 

2 answers

1 vote
Jakub Sławiński Mar 04, 2019

Hi @Jorge Amat

 

you should use the newest JIRA REST Java Client Implementation, i.e.  https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core/5.1.0

 

 

Regards,

  Jakub.

Олександр Шкурат I'm New Here Apr 08, 2019

Hello Jakub.

Have you seen the issue https://ecosystem.atlassian.net/browse/JRJC-149 ?

After six years it's still not fixed. I totally disagree with its minor priority as long as it totally blocks any kind of using a client API.

I've read about a number of workarounds including modifying JAR manually right inside local Maven repo, however I guess it's a shame for a such big company as Atlassian to react so lazily. 

The solution is described here:

https://community.atlassian.com/t5/Answers-Developer-Questions/Java-Jira-REST-API-connect-problem/qaq-p/541518

there is even a pull request made by a community
https://bitbucket.org/atlassian/jira-rest-java-client/pull-requests/92
However it looks like it is not valid.

Could you please push this problem to make your API client finally working?

 

Best regards,

Oleksandr.

0 votes
Edwin Kyalangalilwa Community Leader Jan 17, 2019

Hi @Jorge Amat,

I've seen lots of developers utilizing creating their own URI's.

For example:

String projectURI = "/rest/api/2/project/" + projectIdOrKey + ... );

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

315 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you