Just some very crude but functional sample code for consuming the JIRA REST API from a Node.js client.
- Clone the repository
- Ensure you have Node.js installed.
- Install package depenencies by running the following from the command line within this directory:
npm install
node jira.js [host] [Issue ID or Key] get
node jira.js jira.mydomain.com PROJ-101 get
node jira.js [host] [Issue ID or Key] get-field [field name]
node jira.js jira.mydomain.com PROJ-101 get-field summary
node jira.js [host] [Issue ID or Key] update-field [field name]
node jira.js jira.mydomain.com PROJ-101 update-field summary "New summary of issue"
WARNING: Using this option is not advisable. SSL certificates should be properly signed, or steps should be taken to configure specific certificates on the client when necessary.
node jira.js [arguments] --validate-ssl-cert=false
node jira.js jira.mydomain.com PROJ-101 get --validate-ssl-cert=false