Using the JWT Token with scriptRunner
Code Insight 6.14.2 SP2
After you create the JWT token in Code Insight, you can use it with scriptRunner.
To use the token with scriptRunner, do the following:
1. | Navigate to the scriptRunner/bin directory. |
cd /<Code Insight_ROOT_DIR>/scriptRunner/bin/
2. | Launch scriptRunner, using the –c flag to specify the Core Server URL and the –u flag to specify the authorized user. |
./scriptRunner.sh ‐u admin –c http://localhost:8888/Code Insight/
3. | When scriptRunner prompts you for the token, paste the token onto the command line and press Enter. The Groovy console will be launched if the token is valid. You may exit the console by typing Exit. |
The token is stored in the scriptRunner.properties file for the user account on the client server. You will not be required to enter it again if you run scriptRunner from this server.