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.