Forums

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

Automation to change a field

Dennis_H
Contributor
March 26, 2021

I'm trying to remove some of the default text the issue collector adds when it creates an issue via Jira Automation. I want to remove the E-mail and Reporter textjira100.jpg

I have a rule setup with the following steps:

jira101.jpg

 

The first pic is the result after the rule was setup. The goal is to remove Reporter: and E-mail: and keep everything else in the description (if possible)

1 answer

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 Leaders.
March 26, 2021

Hi @Dennis_H 

It appears there is formatting in the description field.  Try to export an example issue to learn what format mark-up is there, and that will help in the removal.

Next, do you want to remove the entire email prompt and string?  If so, you may want to use removeAll() with a regular expression, replacing with an empty string. rather than using remove()

Please look here for an example of how to do that:

https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/#Smartvalues-textfields-replaceAll(Stringregex,Stringreplacement)

Best regards,

Bill

Suggest an answer

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

Atlassian Community Events