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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,628
Community Members
 
Community Events
176
Community Groups

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

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events