Update for our Zephyr for Jira Server/DataCenter customers : Our team is working on a major version release of Zephyr for Jira to be compatible with Jira 8 .The tentative ETA for the release of this compatible version is by end of March 2019.Please watch this space and anticipate further notifications from the Zephyr team on the updates with regards to the release of the same.Till then we suggest you to use lower version of Jira for seamless operations of Zephyr plugin.For any further feedback , follow up queries or suggestions kindly 'Submit a Ticket' with us.
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