REST API - Simple Format

  • Hi,

We have received your permission to access your Atlassian cloud instance. This will help us to investigate and resolve your issues. You may revoke this permission at any time.

Regards,
Atlassian Support

  • Details

10/Apr/20 6:41 AM

Description

We are planning to intergrade JIRA with our own system through API. As an example we tried below and it successfully woks.

{
“fields”:{
“project”:{
“key”:“TP2”
},
“summary”:“JIRA API TEST EPIC”,
“issuetype”:{
“name”:“Epic”
},
“priority”:{
“name”:“Medium”
},
“customfield_10005”: “JIRA API TEST EPIC”,
“description”:{
“type”:“doc”,
“version”:1,
“content”:[
{
“type”:“paragraph”,
“content”:[
{
“type”:“text”,
“text”:“description”
},
{
“type”:“text”,
“text”:“SOME DESCRIPTION HERE”
}
]
}
]
}
}
}

but our requirement is, our software is supporting simple playloads as below:

{
“project” : “TP2”,
“summary” : “JIRA API TEST EPIC”,
“issuetype” : “Epic”,
“priority” : “Medium”,
“customfield_10005”: “JIRA API TEST EPIC”,
}

Is it possible to do that ? Actually we are planning to write to JIRA as well as read from JIRA both ways.

Is this possible to do that ?

If so,
I want to more details about this. Is it possible to proceed like this ? (I’ve searched some details as below:
https://developer.atlassian.com/server/framework/atlassian-sdk/rest-plugin-module/
but I’ve never tried.

Can you tell me this is possible ? If so, can you provide more details about it for refer. More examples and more details.

Thanks,

Hey Sanjaya, welcome to the developer community.

Could you share some context on the exact use case you’re trying to achieve? It’d be helpful to know which internal tool you’re looking to integrate with, and how that integration needs to work.

Writing to Jira Cloud from your internal tool is possible through the Jira Platform Cloud REST APIs. Assuming you’re particularly interested in being able to create an issue from there, check out the Create issue API for this. Reading from Jira is similarly be a matter of calling the Get issue API.

Your integration may need to include extra code to format the issue API response in a way that’s accepted by your internal tool.

As a heads up, the link you’ve attached is from our server documentation, meaning it won’t include information relevant to integrating your Cloud version of Jira. Look out for /cloud in the URL to ensure you’re reading documentation for our Cloud products.

Let me know how you go with this and if there’s any way I can help further.