The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Set the approver field when creating via apicall

Wade Hephner
December 21, 2020

Hell, 

I have bee trying to set the approver field by using the custom field ID along with an account ID and have tried user name an it is not working to set the approver during create.
 this is the body of my call:

{    "serviceDeskId""9",    "requestTypeId""115",    "requestFieldValues": {        "summary""test from postman",        "description""*Field1:* this field\r\n*Field2:* That Field",        "customfield_10003": [{"acountId":"5edaab1c3d527a0ac3b2754b"}]    }}

customfield_10003 is my approvers field and I have tried with "name" and "accountId" and have been unsuccessful in getting it to set the approver. 

any Ideas?
thanks,

-wade

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Wade Hephner
December 21, 2020

If anyone is having this issue I was able to finally make it work. This issue I had was with my field name - It should be

"customfield_<ID>": [{"accountId":"<account ID>"}]

that will set your approver upon create. if you have more than one just separate by coma.

thanks.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events