When a ticket is rejected in testing, we use Automation rules to add '[REJECTED]' to the issue summary using regex:
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!
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)
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.