Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Remove text after a key word in description

Alvin April 10, 2023

Using automation, is it possible to remove all text after a specific word in the description field? For example I have this in my description: Text Text Text Text [stop] more more more more

I want the tag [stop] and everything after removed so all i have left is Text Text Text Text

1 answer

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 10, 2023

@Alvin -

Using automation rule, you should be able to achieve what you wanted.  You can implement regex pattern check against the Description field - Please reference the following links -

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

https://community.atlassian.com/t5/Jira-questions/Regular-expressions-in-automation-and-smart-values/qaq-p/1920887

After you obtain your needed value, then you can use edit issue action to update the Description field.

Lastly, you can also use the following to test out the rule in the "Debug" mode via the following reference of writing the content into the audit log to ensure your regex works as you wanted - https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Suggest an answer

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

Atlassian Community Events