Forums

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

How to export the request for in JSON

Anuj Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2025

Hi Team,

I am working on automating a runbook and need to export or generate the request in JSON format to use within a script. The goal is to standardize the request payload for consistent execution across environments.

Details:

  • Use Case: Automating a runbook task via script
  • Requirement: JSON structure representing the request (e.g., API call, configuration, or workflow trigger)
  • Current Challenge: Unable to locate or generate the correct JSON format for the request

Request: Please provide guidance or an example of the JSON structure needed to create the script for the runbook. If there are templates or documentation available, kindly share those as well.

1 answer

1 vote
Joseph Chung Yin
Community Champion
August 11, 2025

@Anuj Gupta 

Welcome to the community.

Are you just asking how to obtain the JSON payload associated to an issue (request) created in your JSM project?  

If so - here is the REST API -

  1. /rest/api/3/issue/{issueIdOrKey}  endpoint can be used to retrieve all information about a particular issue
  2. /rest/servicedeskapi/servicedesk/{serviceDeskId}/queue/{queueId}/issue can retrieve issues within a specific queue.

The first one will provide you with all metadata associated with an issue in the JSON payload.

Here is the REST APIs doc - https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#about

Hope this helps.

Best, Joseph Chung Yin

Anuj Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2025

This doesn’t seem to be what we're looking for. Could we schedule a call to discuss the requirement in detail and ensure we're aligned?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events