How to do automation of rule for the transistion of the task from one status to other status on the basis of the commit message. If there is a Done/done/DONE key words are there then it status should be changed.
Hi @SUMUKHA HATWAR K N ,
Welcome to the community!
You need to create a rule that triggers on 'Commit created'
Condition: issuetype = task
Then you can use the advanced compare:
First value: {{commit.message}}
Condition: exact matches regular expression
Regular expression: Done|DONE|done
Then transition to Done.
I hope this helps.
PS you can check the documentation here
Hi @Rudy Holtkamp
Thanks for the reply ,
I have tried this earlier and this didn't work the way i wanted. The transistion did not take place.
Commit consists of Issue key at the starting and followed by some message and then done keyword will be there.
For example :
Commit message = "SAP-183 The version of the word-wrap causing security risk has been updated and the work is done."
or
Commit measge = "SAP-183 The issue is solved. Done"
I need jira to accept this commit message and transit the status of the issue to the Done.
Thanks in advance.
__PRESENT
According to the documentation 'Commit created' is the only trigger which allows you to use {{commit}} as smart value.
So if it does not work, then this seems to me that it is a bug and you need to report it to Atlassian, so they can investigate it.
Otherwise the trigger is useless.
Hi @SUMUKHA HATWAR K N -- Welcome to the Atlassian Community!
Adding to Rudy's answer and to confirm what you are observing...
Please post images of your complete automation rule and of the audit log details showing the rule execution.
Those will confirm we have a shared understanding of what you have tried. Thanks!
Kind regards,Bill
It looks like you're new here. Sign in or register to get started.