My workflow, when status A transition to status B, comment field is required in transition screen.
But sometimes i may use automation do the transition then add universal comment content. Automation logs shows some errors, cause field comment is required.
Is there any other way to implement it besides adding another transition.
Hi @XXY and welcome to the Atlassian Community!
I think you should be able to add the comment during the transition even with an automation rule.
In the "Transition work item" action there is a more options button. When you click that you will see a text box with an example on how to add a comment during the transition.
This is the example content:
{
"update": {
"comment": [
{
"add": {
"body": "Thanks for raising {{issue.key}}."
}
}
]
},
"fields": {
"resolution": {
"name": "Fixed"
}
}
}
You can get rid of the "fields" part since you only want to add a comment. Making it this:
{
"update": {
"comment": [
{
"add": {
"body": "Thanks for raising {{issue.key}}."
}
}
]
}
}
Try this and let me know how it goes :-)
Thank you!
It works.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.