Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to set approvers while creating issue rest api

Hi All,

 

I am brand new to JIRA Service desk and i am trying to create issue type of Service request with approvals and i want to know i can create issue with approvers using REST API.

1 answer

0 votes

Hello Avitesh,

Welcome to Atlassian Community!

It's possible to create a ticket via REST Api with approvers, but in this case, it will be necessary to add the field id.

Multi-user picker custom field - A custom UI field that enables multiple users to be selected.

"customfield_11458" : [ { "name":"inigomontoya" }, { "name":"tommytomtomahawk" }]

On "name" you will add QM id (if it's a customer) or the Atlassian account id (for agents).

Here is the template that I used and that successfully created a ticket with approvers:

curl --request POST \
--url 'https://mysite.atlassian.net/rest/servicedeskapi/request' \
--user 'name@domain.com:APITOKEN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"serviceDeskId": "12",
"requestTypeId": "223",
"requestFieldValues": {
"summary": "Request JSD help via REST",
"description": "I need a new *mouse* for my Mac",
"customfield_10100": [{ "name":"1a23b45cde67f89g1h23ij4k" }]
}
}
}'

Screen Shot 2020-04-14 at 15.21.10.png

If you have any other questions regarding this matter, please let us know.

Regards,
Angélica

Thanks for that, helped a tone!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

364 views 19 20
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