Forums

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

Jira Automation Method for Editing Summary Field

Andrew Gansler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 28, 2023

When a ticket is rejected in testing, we use Automation rules to add  '[REJECTED]' to the issue summary using regex:

  • [REJECTED] {{issue.summary}}

Now, we'd like to ensure that the [REJECTED] label is removed from the issue summary whenever the issue is transitioned to a resolved state.

We can easily identify the condition, but it is unclear to me whether there is an appropriate expression that can be used to remove text from a field.

Thanks in advance!

2 answers

2 votes
Nic Brough -Adaptavist-
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.
July 28, 2023

Why?

This is something you should be doing in the workflow, the "rejected" is clearly a part of a process, not part of a field (if it really is part of a field, then you should be doing it as a field, not mangling the summary)

0 votes
Kai Becker
Community Champion
July 28, 2023

Hi @Andrew Gansler 

you should be able to use smart value string functions:

{{issue.summary.remove("[REJECTED] ")}}

The full documentation on these functions can be found here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/ 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events