Create
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Sign up Log in

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 API for webapp

Hello Everyone,

I'm trying to make an app that can grab JQL results via the Jira Rest API. I'm coding in Javascript and having a hard time understanding the documentation. Does anyone have any good resources they can point to for this? It's my first time with Atlassian products and I'm quite lost for now haha. 

 

1 comment

Hi,

It'll be easier to answer this in depth if you provide more context, but let me try it anyway:

1) You want to use the REST API. There's actually two different pieces of documentation to look at, depending on whether you are on server or on cloud. By the the tag on your question, I gather that you have Jira installed on a server somewhere, so this here should be a good starting point for the REST documentation:

https://developer.atlassian.com/server/jira/platform/rest-apis/

2) You want to grab the results from a JQL query, so you will need to know which endpoint to hit. Here's the list of all endpoints:

https://docs.atlassian.com/software/jira/docs/api/REST/8.10.0/

And here is the one I would use:

https://docs.atlassian.com/software/jira/docs/api/REST/8.10.0/#api/2/search

3) Now the fun part starts: Calling that endpoint from your favorite programming language! You said you are using JavaScript, so I am assuming that you are using NodeJS. In that case, I would recommend installing a module like this one: https://www.npmjs.com/package/jira-client

โ€ฆwhich of course also has some documentation with getting started examples:

https://jira-node.github.io

4) And sure enough the module also includes a method to search for issues in Jira using JQL:

https://jira-node.github.io/class/src/jira.js~JiraApi.html#instance-method-searchJira

 

That should be enough to get you going. Hope that helps and good luck with your app,

 Oliver

๐Ÿ˜ƒ๐Ÿ˜ƒ๐Ÿ˜ƒ๐Ÿ˜ƒ๐Ÿ˜ƒ๐Ÿ˜ƒ๐Ÿ˜ƒ Thank you so much Oliver, you are so helpful and encouraging. I'm looking through these links now. THANKS !!!!

-P

Like โ€ข Oliver Siebenmarck _Jodocus_ likes this

Comment

Log in or Sign up to comment
TAGS

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