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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.