The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Creating global automation for removing CLONE from sub-tasks

Tara Bell
June 17, 2024

I am looking to create automation for when a standard issue with sub-tasks is clone so CLONE is automatically removed from the Summary of all sub-tasks.

I tried to use AI for this, but it wasn't quite correct.  It would remove from 1 or 2 sub-tasks, but not all.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
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 Champions.
June 17, 2024

Hi @Tara Bell 

To remove the "CLONE - " prefix from the issues, you could use a rule triggered on Issue Created, and the grab the text after that.  However...an observant person may remove the prefix when the issue is created, and so try a technique that will only remove() the value when found: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#remove-String-remove-

For example:

  • trigger: Issue Created
  • action: Re-fetch Issue (This is to reload the data before the rule proceeds, preventing any timing problems with the issue created trigger.)
  • action: edit issue, setting the Summary field to
{{issue.summary.remove("CLONE - ")}}

Kind regards,
Bill

Tara Bell
June 17, 2024

@Bill Sheboy - this did the trick! Thanks so much!

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 Champions.
June 17, 2024

Awesome; I am glad to learn that helped!

 

FYI...I recommended that simple rule approach as you appear to be on the Premium license level, and so have more automation usage executions per month: https://support.atlassian.com/cloud-automation/docs/how-is-my-usage-calculated/#What-are-my-usage-limits

And so that rule will count one usage for every issue created.  If that becomes a problem, you may modify the rule to add a condition before the edit:

  • smart value condition:
    • first value: {{issue.summary.left(7)}}
    • condition: equals
    • second value: CLONE -

With that in place, the rule will only "count" for usage if the condition is met and the edit occurs.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events