How to clone issue checklist with automation?

Christian Van Antwerp November 7, 2022

I am trying to automate an issue so that when it is complete, a new issue is created and scheduled for a year out and contains the attachments and checklist of the original issue. The problem occurs with the checklist when I copy the Checklist Text field from Current Issue it also copies the status of the task meaning all the items are still checked. Is there a way to copy the checklist items without copying their status?

3 answers

1 accepted

4 votes
Answer accepted
Wojciech Wardaszko _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.
November 7, 2022

Hi @Christian Van Antwerp ,

Wojciech here, I'm with the HeroCoders, the team behind Issue Checklist for Jira.

If cloning for some reason doesn't cut it for you, you can use the smartvalue replaceAll() function to execute regex replace on the Checklist Text field.

I imagine it should be something like this: {{issue.customfield_1XXXX.replaceAll("\[.*?\]","[]")}} to get all items from that checklist unchecked and statuses cleared.

For this to work you need to find the ID of your Checklist Text custom field and replace the 1XXXX with the ID, and you also need the "Save Checklist data to Jira custom fields" setting enabled in Issue Checklist global settings.

If you need any more help, please feel free to reach out to our Customer Success team - we're here for you!

Christian Van Antwerp November 7, 2022

Hello Wojciech, 

This worked, thank you! I had come across this when reviewing the use case documentation but when I tried it, nothing happened. For some reason, when you recommended it again, I thought to try it in a different way and it worked. 

Thank you for your feedback.

Christian

Wojciech Wardaszko _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.
November 8, 2022

I'm really glad I was able to help. If you have any other questions, you know where to find us!

Cheers

0 votes
Michał March 13, 2024

hi @Christian Van Antwerp ,

could you share your automation to clone issue with checklist please?

simple clone automate does not clone checklist:

Zrzut ekranu_13-3-2024_22525_salestube.atlassian.net.jpeg

thanks

Michal

Christian Van Antwerp March 14, 2024

Hey @Michał ,

Use "Choose fields to set" and select Checklist Text. Don't forget to replace the XXXX with whatever custom field ID matches the Checklist text custom field (See @Wojciech Wardaszko _HeroCoders_ answer above).

Copy Checklist Automation.jpg

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 7, 2022

Hi @Christian Van Antwerp , welcome to the community.

Are you using the clone action? I took a quick look at the Issue Checklist Pro documentation end it indicates that the statuses should be unchecked in the clone. Is that not the case? If so you may want to reach out to their support.

2022-11-07_10-38-30.jpg

One last comment to share. If you set up a checklist template Anna sign it as a default to the issue type then it seems you could just create a new issue and have the checklist automatically included. But if there are other aspects of the original that you want to clone that could be a limiting factor here.

Christian Van Antwerp November 7, 2022

Hi Jack,

I read that too, that is how it works when you manually clone it but when I tried the cloning automation action it doesn't copy the checklist. After scanning some other community posts I learned to use the copy checklist text action but that method has the undesirable result. 

The checklist template is currently my last resort. Right now, we have approximately 80 different issues that would have unique checklists. We automate around how often the task needs to be done (daily, weekly, monthly ect.) If I can avoid making 80 templates/automation types that would be preferable.  

Thank you for your fedback

Christian

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer