Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Jira Rest Java Client compatible with Adaptavist?

Hi, we have started using Adaptavist as our test management tool. We would like to integrate this plugin with our Automation suite which is written in Java. Is the jira rest java client compatible with this API?

1 answer

0 votes

JRJC is a library written for Jira.

ScriptRunner adds other functions that the JRJC cannot possibly know about.  So it won't have anything to do with those functions.  But it is "compatible", because it talks to Jira and SR doesn't change what Jira exposes to it.

Thanks Nic for you response.

 

I probably was not clear. My requirement is a JAVA Rest Adaptavist Library to interact with the Adaptavist API. By the sounds of your answer ScriptRunner seems to be what I'm looking for. Is this correct or am I mistaken?

It looks like ScriptRunner is for Groovy? If so does a JAVA library that allows interaction with Adaptavist API exist?

It's a bit more complex than I think you have described.  I could just say "no" to answer your last question, but I think it is worth explaining what you are looking at.

We all know we have a Jira system, providing issues, projects, users, workflows and so-on.  This includes a GUI front end for us humans.

This system has a REST interface it exposes to the outside world, so that other computers can talk to it without using the GUI which just gets in their way.  Obviously, to use it, you need to code for it.

Atlassian provide a java based library called JRJC that tries to help you with it.  As a random example, if you ask the Jira REST API for an issue manually, you'll get a big block of text encoded with information about all the fields and so-on, but it is plain text.  Your code would have to work out what it was looking for in there, extract it and work with it, with no real understanding that the block of text was a "Jira issue".  JRJC gives you some structure to the interface, so you don't have to code for those concepts yourself.

ScriptRunner is a plugin/add-on/app for Jira that adds extension points where you can write code inside Jira.  You can write calculated custom fields, workflow functions, JQL functions, automation scripts and so-on.  All of those are internal to Jira though and if they're exposed over REST in any way, it's via the core functions.  A ScriptRunner field looks like any other field when you ask for it via REST.

The exception here is that SR also allows you to write your own REST endpoints.  Because they are not part of Jira themselves, and you could do absolutely anything with them, JRJC can't handle them - it's not written by Adaptavist, but more importantly, your REST endpoints could be doing anything.

So, no, there's no libraries for SR REST endpoints, because there is simply no way for us to know what you are going to do with them.

Thanks Nic for your time, very thorough explanation. 

 

So in essence, No.

Technically, it's "compatible" in the sense that it will not break.

But it can't possibly do anything with ScriptRunner either.  It's a bit like saying a screwdriver is "incompatible" with a freezer if you put it in there.  You can freeze a screwdriver if you want, but it's not going to do much to help you cook your dinner.

Great analogy :) I actually re-read the previous response a few times and now understand precisely what you were trying to say. 

 

I have another question regarding the POST requests to Adapatavist API but I'll ask that on a different thread as it is a separate issue. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

97 views 0 5
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