Hello, Jira Masters! :D
I created a new project in Jira and I added to it this automation rule:
Long story short: When I add a comment with a keyword on the task, I want its status to change. For example:
--- Keyword "Approved" / Moved from "Waiting for Hiring Manager" to "Approved for TI"
---- Keyword "Declined" / Movem from "Waiting for Hiring Manager" to Rejected
Now my problem is that this automation rule does not work at first and I have to add another comment (any comment) to receive the trigger and change the status. After that, the status changes.
Please note that I've already tried to put only one keyword (only approved) in the rule and it still doesn't work at first. I also tried without the first IF (status equals - Waiting for Hiring Manager) and it still didn't work.
Any ideas what am i doing wrong and how can i make it work from the first comment? :)
Thank you,
Miruna
Interesting problem.
Try this in your condition.
{{comment.body}} contains "Keyword"
Add advanced compare condition.
Let me know if this works.
Ravi
Omg, omg! It wooorked!
I am very happy and I am so sorry because there are no emoticons here to celebrate :)) (I've been trying to make it work for a while)
Thank you so much, @Ravi Sagar _Sparxsys_
Now that I've discovered this part, do you have any idea if I can add something next to the keyword? (for example same word written in uppercase or lowercase)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad it worked. Basically you were using comment ~ "Keyword" which was doing a JQL search and finding issues with the keyword but what we wanted to do was to focus only on the comment.
Yes you can have more text in the comment. For ensuring lowercase as well I suggest you to use "contains regular expression" so you can find tune your search based on your exact needs.
Ravi
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.
Have you looked at the Audit Log after running the rule for the first time? If it didn't work, there should (might?) be a warning, error, or clue in the Audit Log as to why.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I checked the messages there and it's always the same:
1. The moment I added the first comment
2. The moment I added the second comment
It's weird that the rule still takes into account the first message, although the status does not change.
I also tried to wait longer to see if something changes after the first comment and nothing happens..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see that Ravi's info helped you get this solved, which is great.
Note that the Audit Log was trying to tell you that your conditional wasn't working like you expected. If you see the message "did not match the condition" when you expect that it should match, then questioning the syntax or configuration of the condition is a good next step.
A lot of people overlook the value of the Audit Log in trying to get rules to work as expected. I like to use the "Log action" liberally while developing / debugging a rule, to help me see what's going on.
Happy automating!
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.