We are performing a phasewise scheduled maintenance of our Zephyr for Jira Cloud and Capture for Jira Cloud customer instances to be compliant with GDPR- Atlassian privacy policy (https://www.atlassian.com/trust/privacy) .Please expect a downtime during this phase of maintenance between 14th December , 9:00 pm PST to 15th December 5:00 am PST.For any further queries regarding this please rasie a ticket by using the option 'Submit a Ticket' below
Support | Zephyr

Sample - Create JWT Token for a ZAPI Cloud API

Created on

Problem : How to Generate a JWT Token

Solution :

Sample code is provided for reference

  • Code uses the ZAPI CLOUD Url shared via email for a JIRA cloud instance , Access Key and Secret Key of a Jira user.
  • ZAPI CLOUD API to which the JWT token has to be generated and Jira userName
  • Initializes the ZFJCloudRestClient . ZFJCloudRestClient sample is provided here.
  • Gets the JwtGenerator from the client
  • Generate JWT token using the generateJWT method
  • Prints the final URL and JWT token which can be used with any browser REST client to make request.

Refer the link to download the sample 

ZAPI Cloud Interactive documentation: http://docs.zfjcloud.apiary.io/

Was this article helpful?
0 out of 6 found this helpful
Have more questions? Submit a request
Powered by Zendesk