Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Checklist Free - Changing Checlist item status automation

Lucas Fyffe November 14, 2023

Hi there,

I have some Automation set up so that when an issue transitions to "Status A" a Checklist template is added.

I've now set up an additional rule so that if the issue goes to Status B and then Back to Status A the Checklist will not be overwritten. (only issues with no checklist will get the template.)

Each item on the checklist has a status, these can be, done, failed, open, skipped, in progress.

What I would like, when a issue with an existing checklist transitions to Status A, all 'failed' items on the list go back to 'open'.

So far this won't work....

{{Issue.Checklist Text.replaceAll('failed','open')}}

and i've tried a bunch of different things with no success.

Any help would be massively appreciated.

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 14, 2023

Hi @Lucas Fyffe 

The replaceAll() function uses a regular expression for matching and the replace() function uses plain text.  Perhaps try using just the replace() function to update the field.

Or, please see the documentation for using replaceAll() with that addon: https://docs.herocoders.com/checklist/change-item-to-custom-status-on-transition

 

And...would you please show your rule image, including how you are trying to use that replacement?

Kind regards,
Bill

Lucas Fyffe November 14, 2023

Thanks for this Bill.

This is an image of the automation

image.png

I've just tried with the replace() function but no success.

Lucas Fyffe November 14, 2023

Actually i got it to work! I had ' instead of " grouping my target and replacements!
Thanks for your help, turns out it was Replace that works, Replace All does not!

Like Bill Sheboy likes this
Bill Sheboy
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 15, 2023

Well done; I am glad to learn that helped!

0 votes
Lucas Fyffe November 14, 2023

image.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events