Sep-18-2020, 05:36 PM
Hi Snippsat,
Jira provide a sample code in Java to call their REST API and I leverage their OAuthTutorialClient-1.0.jar. That's why I use subprocess to run a command in cmd. The result of command line is a string in json-format. I use json.loads() to load that string to the variable "issue" before pass it to json.dumps() and append it to the AllIssue.json file.
Regards,
Tien
Jira provide a sample code in Java to call their REST API and I leverage their OAuthTutorialClient-1.0.jar. That's why I use subprocess to run a command in cmd. The result of command line is a string in json-format. I use json.loads() to load that string to the variable "issue" before pass it to json.dumps() and append it to the AllIssue.json file.
Regards,
Tien