Forums

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

Converting to jira's json format

Matías Gamarra
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!
October 13, 2018

Hello community.

We have a Service Desk tool capable to connect to a rest api, I was able to create a project in jira via the jira's api but the problem started when I tried to create issues.

Basically, my tool is only capable to send json post in this format (I cannot modify the format, but of course i am able to add values):

{

variable1=value1

variable2=value2

...

variableN=valueN

}

Actually, the proper format to create a issue via the api is as follows:

{
    "fields": {
       "project":
       {
          "key": "CR"
       },
       "summary": "Nombre del issue",
       "description": "enviar la descripción del issue aquí",
       "issuetype": {
          "name": "Error"
       },
       "customfield_11401": "NROTICKET"
   }
}

 

Is there a way, via an api gateway or something like allows me to convert the format of the json post understandable by jira to create an issue?

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2018

Why can't your application create valid JSON?

Matías Gamarra
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!
October 13, 2018

Because is a thirdparty application, not made it by me.

They say that, if I want to made a formatted json post, i need to use an api gateway or something like that.

I just want to know if someone have experience in this .

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2018

Ok.  Well, yes, you will need to find something that can take your 3rd party application's output and convert it in to valid JSON.

The problem with asking us here is that we can't know what that application is generating.  You really need to be looking at what it is outputting, and work out how to translate that into valid JSON that Jira can then read.

Queenmary August 1, 2020

Hi,

I am having the same problem that my tool ClearQuest is not generating the proper json that a jira api can read it so that we can create issue automatically.

 

Could any one help how to make a jira readable json format??

Suggest an answer

Log in or Sign up to answer