Generating a JSON Web Token (JWT)

Access to the Code Insight application from scriptRunner or any external application (REST API calls, Jenkins, etc.) requires a valid JWT Token for authentication and information exchange. JWT tokens are generated in the user interface and may be passed to scriptRunner or in the header of a request during a REST API call.

To generate a JWT token, do the following:

1. Log into Code Insight as a Scripting Administrator.
2. Click My Settings in the upper right-hand corner. The My Setting page appears:

3. Click Add Token. The Add Token dialog appears:

4. Enter a token name and expiration date; and then click Save.

Note:If no date is specified, the default expiration of 1 month from today will apply.

5. Click Select Token Text or press CTRL-C to copy the token text to the clipboard.

6. Click Close. The token is now available for use with scriptRunner or REST APIs.