Forums

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

Field update failing in Jira Automation

Sarthak Gupta February 23, 2022

Hi,
I am trying to update a field in a Jira automation

Screenshot 2022-02-23 at 5.57.24 PM.png

This was working fine before, however now I am getting this error.

Screenshot 2022-02-23 at 5.58.55 PM.png

 

The "Developer" field is still there for this issue type, so I'm unable to figure out what went wrong and how it was working before.

Screenshot 2022-02-23 at 6.00.28 PM.png

 

2 answers

1 accepted

0 votes
Answer accepted
Sarthak Gupta February 24, 2022

Started working with 

 

{
"fields": {
"customfield_10410": [{{assignee.accountId.asJsonObject("id")}}]
}
}

 

Had to replace Developer with customfield_10410

0 votes
Prince Nyeche
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.
February 23, 2022

Hi, why are you using {{assignee.accountId.asJsonObject("id")}} the end data type is a string so it should be {{issue.assignee.accountId}} for user fields.

Sarthak Gupta February 23, 2022

This is the error I get when I use {{issue.assignee.accountId}}.

Screenshot 2022-02-24 at 1.03.34 PM.png
{{assignee.accountId.asJsonObject("id")}} was working before.

Now the issue is that the automation is not able to find the "Developer" field.


Sarthak Gupta February 24, 2022

Started working with 

 

{
"fields": {
"customfield_10410": [{{assignee.accountId.asJsonObject("id")}}]
}
}

 

Had to replace Developer with customfield_10410

Suggest an answer

Log in or Sign up to answer