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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,671
Community Members
 
Community Events
184
Community Groups

Create servicedesk customer request with attachment

Hello to everyone,

I want to create customer request with attachment via servicedesk api in jira server.  I tried multiple ways to handle it using different apis from following link, however, it was not successful. Is there anyone who can give example or help, I would really appreciate your help.

Link:  https://docs.atlassian.com/jira-servicedesk/REST/3.16.0/?_ga=2.55887663.564115258.1548142379-1573215797.1546931611#servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile-attachTemporaryFile

Best 

1 answer

I also struggled with this for 1 hour, and here is what I've found:

1. There's no single, convenient API method to create a request with an attachment (or I've not found it).

2. Even the native Service Management portal request form does it in 3 steps:

  • When you add a new file to the form, it uploads a temporary attachment and saves its temporaryAttachmentId
  • When you press submit, it sends a request to create an issue and adds all temporaryAttachmentId to the payload in the filetoconvert attribute.
  • And it attaches all the uploaded files defined by temporaryAttachmentId to the issue right after it is created.

3. You have to use the same three steps with the API:

Suggest an answer

Log in or Sign up to answer