Apply Template using automation/integration tools
Add Smart Checklist Templates to your issues via different tools available in Jira - ScripRunner for Jira, Automation for Jira, JMWE.
Β
Contents ππΌ
Steps on how to apply the Smart Checklist Template via Automation for Jira
π‘HINT: This is just an example of a use case with Issue created trigger. You can select any other available trigger based on your needs.
Create a personal access token
Navigate to User icon β Profile β Personal Access Tokens β Create Token
Copy token value
Go to Project Settings β Project Automation β click Create rule: (or go to Administration β System β Automation rules β click Create rule: )
Β
Create a trigger
Choose Issue created
Save
Β
Add component - New action
Β
Choose Send web request as the first action.
Fill in the fields with the following values:
Webhook URL | http://Jira_base_URL/rest/railsware/1.0/checklist?issueKey={{issue.key}} |
---|---|
Headers | Header Name: Example: |
HTTP method | GET |
Webhook body | Empty |
Wait for Response | Check this option |
c. Save
Add component - New action
Β
Choose Send web request as the second action
Fill in the fields with the following values:
Webhook URL | Where |
---|---|
Headers | Β |
Authorization | Bearer + token (mentioned in step 1) |
HTTP method | POST |
Webhook body | Empty |
Wait for Response | Donβt check this option |
βπΌNOTE: You can find the Template ID by going to Issue β Smart Checklist β 3 dots menu β Manage Templates β Expand the Template you are looking for β Copy the Template ID β
Or going to Jira Administration β Manage apps β Smart Checklist Settings β Templates tab β Find needed template β Click on the Template you are looking for β Copy the Template ID β
Check out more about Templates IDs here βUse Templates in Automation tools
c. Save
Name your new Automation and Turn it on
You're done! Now every time an issue is created, the proper template will be added to your Smart Checklist π
Steps on how to apply the Smart Checklist template via ScriptRunner
Go to Jira Administration β ScriptRunner β Console
Add the following script:
Where testIssueKey
and templateId
should be changed accordingly.
Click Run
Steps on how to apply the Smart Checklist template via JMWE
Navigate to Jira Administration β Manage apps β Jira Misc Workflow Extensions Settings β Select Groovy console
Add the following script:
Where testIssueKey
and templateId
should be changed accordingly.
Click the
Test Groovy script
buttonEnter Issue Key where you want to apply template β Click Test
You will see a message π
Β
Β
Β