Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set the approver field when creating via apicall

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

0 votes
Answer accepted

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

189 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you