This guide is based on Jira built-in automation functionality.
The guide works for Classic projects only. Next-gen projects are too limited and do not support automation features.
Prerequisites
"Save checklist data to Jira custom fields" option must be enabled in Issue Checklist Global Settings.
Step by step guide
- Create a new rule in Automation plugin (go to Project Settings > Project automation and click Create rule button)
- Select "Issue Transition" as a trigger and next choose source and destination statuses (details of transition)
- Select Action as the next step and choose "Edit Issue" from the list of actions
- Select Checklist Content YAML (or Checklist Text) field on the next screen
- Provide details for the custom field update as presented on the screenshot, i.e.:
- Checklist Content YAML (or Checklist Text) field ID in the double curly braces in order to insert existing checklist (check how to find custom field ID)
New checklist items that you want to append, e.g.:
Example TextAcceptance criteria 1 Acceptance criteria 2
Example YAML- text: 'Acceptance criteria 1' checked: false - text: 'Acceptance criteria 2' checked: false
If you want to replace/overwrite the checklist, then remove custom field ID in curly braces from the first line. Additionally, for YAML only, put "items:" phrase in the first line. Read more.
Save the rule and test your setup (transition an issue, refresh the page and spot the checklist updated).