How to load a checklist template when creating a issue using Script Runner in Jira Cloud?

Amal P March 5, 2024

In our situation, when a story is created, there's an automation set up to generate two subtasks automatically. We need to apply a checklist template to these automatically created subtasks. If any team member is familiar with this process, please offer support.

3 answers

1 accepted

0 votes
Answer accepted
Oleksandr Siryi_Railsware_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 6, 2024

Hey, @Amal P 

If you are still looking for a solution, I might suggest Smart Checklist for Jira. 

If I am understanding your question correctly, you can just update existing automation by adding the Set entity property action with the Smart Checklist property value to apend a checklist template. 

We have an example of Groovy script being executed as part of a workflow (which is not your case but might be helpful). Or you can take a look at setting the checklist using Jira REST API to learn more

Hope this was helpful!

Amal P March 6, 2024

@Oleksandr Siryi_Railsware_ Thanks for the support.

1 vote
Gracjan Wesołowski _HeroCoders_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2024

Hi @Amal P 

my name is Gracjan, and I'm a Customer Success Expert, at HeroCoders, the team behind the Issue Checklist for Jira Free app.

As mentioned by @Marc Koppelaar our app can do that even without automation.

The easiest way to achieve that is by using Default Templates.

To do that, please go to the Checklist Tab that can be found in the left navigation bar:

checklist_button.png 

Create a Checklist Template, and set it as default with a button available next to your newly created checklist.

Templates.png

In the next step, you can choose in which issue type this checklist should be automatically applied.

IssueType.png

For more complex use cases you can also apply a checklist using automation.

I hope that clarifies your request. In case you have any other you can contact us through our Contact Center here.

Cheers!

Gracjan

Amal P March 6, 2024

@Gracjan Wesołowski _HeroCoders_ , thank you for your support. We want to refrain from applying these templates to all subtasks. Our specific goal is to apply these templates exclusively to the subtasks generated through automation using a Groovy script. Is this functionality available in "Checklist for Jira Free"? Your suggestions are appreciated.

Gracjan Wesołowski _HeroCoders_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2024

The answer provided by @Marc Koppelaar  is correct.

You can either use Checklist Text to add a checklist using the automation, or you can use label integration.

To do that, ensure that the Apply checklist templates from issue labels global setting is enabled, make sure that the Checklist Template name does not include any spaces, and just add a label named the same as your Template using automation.

If you need any help with configuration you can schedule a call with me through this link.

Cheers!

Gracjan

1 vote
Marc Koppelaar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2024

Hi @Amal P 

Look at the marketplace for checklist apps, there are free ones and see if they can be used within automation.

I think one of the following can suite your request.

Amal P March 6, 2024

@Marc Koppelaar  appreciate your assistance. Currently, we're utilizing the "Issue Checklist for Jira Free." However, the situation is that we've set up automation to generate two subtasks when creating a story. Our objective is to associate any checklist template with these automated subtasks. Could you please provide guidance on accomplishing this using the Groovy script?

Note: We aim to avoid applying these templates to all subtasks. Specifically, we want to load these templates only for the subtask generated through automation using a Groovy script.

Marc Koppelaar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2024

HI @Amal P 

There is no need for groovy scripting.

Add the checklist text custom field to the screen(s) used for the issue type sub-task.

Make sure Save local checklist items to Jira customfields option is enabled in the global setting of the app.

Then add the field in the automation rule on creating the sub task and specify the checklist items you want to have as default.

See example:

Screenshot 2024-03-06 at 12.44.55.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events