Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Any npm lib/package or script for us to access JIRA project?

Alex Yang
Contributor
May 17, 2021

Our company purchase the JIRA product and set up an internal site named https://jira.mycompany.com

and my project is named 'theflash'. 

Now I need to create a script (javascript) to query and create an issue automatically when our build job fails in the Jenkins pipeline. 

I am not sure there is an npm package that wraps the REST API, or I have to use url directly to call API. furthermore, I tried to find sample of calling restful API of JIRA but failed. what I find is a thread related to Python code sample, e.g. https://community.atlassian.com/t5/Jira-Software-questions/I-need-a-script-that-will-create-a-Jira-issue-in-a-specific/qaq-p/1094268

 

and it will be better if there is a sample/script like postman so that I can use it to test and try the RESTful API of Jira.

 

any help will be much appreciated.

 

1 answer

2 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2021

There are loads of samples out there, it's more about finding one that works for you than finding any.  Although generally, the REST API is relatively easy to use and it's harder to work out how to use a library than it is to just do the calls directly yourself.

All of them are, of course, based on using the REST API - see https://developer.atlassian.com/server/jira/platform/rest-apis/ for getting started with that without needing any particular library.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events