Forums

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

How would one write a compare condition to check attachment name?

Anna Shelley
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!
May 19, 2020

Is it possible to configure a compare condition to match only certain file names?  We'd like to create a rule that does the following:

When:  Issue created

If:  Compare two values (If the attachment name is trk12345678910 OR _EXT__T_C__Advisors_Remittance)

Currently I am using for the compare condition: 

First value: {{attachment.filetype}}

Condition: exactly matches regular expression

Regular expression: ^trk\d\d\d\d\d\d\d\d\d$

OR

First value: {{attachment.filetype}}

Condition: exactly matches regular expression

Regular expression: ^_EXT__T_C__Advisors_Remittance$

 

Then:  Transition the issue to Resolved status.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events