Forums

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

Creating a project automation rule based on a change to a comment

Rich Imbrogno October 18, 2022

Hi. We are using a canned response in our Service Management tickets that identify if a resource is required from certain partner groups and looks similar to this:


This project may require a:

[] - Corporate Security Resource
[] - Firewall Resource
[] - Performance Management Resource


I would like to create a rule based on whenever an "x" is inserted in between the brackets then trigger an email based on which group needs to be engaged. It will basically involve that when the comment is edited, as per below then send an email to our Corporate Security team to assign a resource


This project may require a:

[x] - Corporate Security Resource
[] - Firewall Resource
[] - Performance Management Resource

The JQL statement I used is pretty basic, whenever a comment is edited and labels = ICN_Test AND Comments ~ "\\[X\\] - Corporate Security Resource" send the email

It's not working in my testing and this seems to be the only way I can query something that uses special characters. Any other changes I'm making to try and select the specific criteria is failing.

I'm able to trigger other rules when Comments field changes but they do not involve [ ] symbols. Thank you

 

2 answers

1 accepted

1 vote
Answer accepted
Maxime Lefebvre _Okapya_
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.
October 21, 2022

Hi Rich,

I believe our app Checklist for Jira would provide the necessary tools to implement the desired workflow.

We offer a "Checklist Modified" Automation trigger that you could use to build the necessary rules to send e-mails when your items are checked.

Depending on how much value this workflow would add to your team, it may be a good opportunity to contact your Jira administrators to investigate the possibilities available to you.

Now for your main question, I don't believe what you are trying to do will work because Jira does not index special characters and do not search them, so searching for \\[X\\] is the same as searching for X. See special characters section of documentation.

Have a nice day!

Rich Imbrogno October 21, 2022

Thank you Maxime. At this time we'll have to pass however may look into this with the migration to a corporate-wide managed instance of JIRA. I will keep this under consideration. Thank you again for your feedback and suggestion. 

0 votes
Mohamed Benziane
Community Champion
October 20, 2022

Hi,

May be you are already explored this way but can you use a select list customfield instead of a comments for the choice ? It will be easier to trigger something and to look for.

Rich Imbrogno October 20, 2022

I would love to however I'm a project admin only so do not have ability to create a custom field. My work around right now is adding a keyword to the comment field which will allow me to trigger a rule however defeats the purpose of having a checklist. Thanks for your response though. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events