Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,526
Community Members
 
Community Events
168
Community Groups

Create checklist from customField contents upon issue creation.

Hi. 

We have received a request to add a checklist to an issue upon its creation. My initial thoughts were to create a multiline checklist customfield, where the items in the customfield becomes the checklist. 

I can create a checklist via the YAML field and a single value customfield. But if there are several values required to actually make a checklist. How do I do this with automation? 

I need the Yaml?, because the issues are a logg and will reflect what has been done, and the checklist items will be checked/done. 

2 answers

2 accepted

After posting my question, I tried a few things on my own. 

I knew the main problem was iterating through the list items and create a check list entry for each. I thought I needed to use the YAML field to create lists with options checked or unchecked (checked: true).   

Using the Check List Text field I was able to create the check list from values in the Select List field. I first used the smart fields: 

{{#customfield_101xx}}* [done] {{.}}{{^last}}\n{{/}}{{/}}

trying to make a vertical list of check items. I couldn't figure out how to insert a new line in every iteration of the select list values. 

CheckList one line.png

Then I saw something in a description of making bullet lists with smart values :) and made this: 

--- Informert
{{#customfield_10142}}
* [done] {{.}}
{{/}}

 which made a vertical list of check list items pre-checked. 

checklist.png

0 votes
Answer accepted

Hello @Tor Magne Svendsen,

I can see that the question is related to Issue Checklist Free

You can find examples of the YAML checklist in the app documentation pages

Instead of YAML, you can also use a more human-friendly Text format.

When comes to the manipulating checklist through automation, we have plenty of examples in our docs too: https://herocoders.atlassian.net/wiki/spaces/IC/pages/818937870/Jira+built-in+automation

Let us know if that helps.

Cheers,
Jack

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events