You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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" }]
}
}
}'
If you have any other questions regarding this matter, please let us know.
Regards,
Angélica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to select approver by email, not by name? We have people with same name in Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergei,
You should be able to achieve this by using the email of the user to fetch the Atlassian id with the Jira REST API. Then you should be able to tunnel it into the call above.
You will need to use "id" as key in the list instead of "name" or "username".
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.