Hello,
I have started to learn automations for Jira a couple of months ago, but I've stumbled with a problem.
We have an approver field, with the configuration of making the assigned user to set it, but we want to set it with an automation.
With this code, it seems that works fine:
{
"fields": {
"customfield_10112": "{{issue.reporter.asJsonString}}"
}
}
But it does not, it doesn't return an error but also does not update the field:
I have also tried to use the user ID, but the field won't accept it with this format.
TIA.
Ton
Hi @Ton Rigat
Welcome to the community.
I expect you want the issue reporter to be the approver.
You don't need to use the advanced option, you can use the smart value {{issue.Reporter}}:
Will this help solve your issue?
Thanks for the fast answer.
It's not exactly right, it works but not with the same field:
The problem is that the field "Reviewer" does not appear in the list of fields, that is why I was trying to do it with JSON
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ton Rigat
I expect that the custom field Reviewer is also of the type single or multi user.
Try to set the Reviewer as follows
{
"fields": {
"customfield_10112": { 'id": "{{reporter.accountId}}"}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Ton Rigat
What is the field type of the custom field "Reviewer"?
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.