Help regarding importing link information via JSON import ..

{

"links": [

{

"name": "clones",

"sourceId": "BUG-45",

"destinationId": "BUG-46"

},

],

}

This is my test JSON file to link two issues i.e. BUG-45 to BUG-46

but by importing this i am getting errror as "failed to create data bean"

Can anybody tell me, if there is anything wrong in my attempt or in the file format ??

2 answers

If that's the exact file you were trying to import I need to let you know that this isn't a correct JSON file, you have "," after elements } and ] but they are not followed by another item.

It's incorrect to put "," after an element if it's not followed by another. See that's good [1, 2, 3] , that's bad [1,2,].

If it's not the exact file I'd suggest posting your atlassian-jira.log so I can see what's going on.

Thanks pawel,

yes you are correct, it should not have "," after } & ]

I have one more query, if i want to do bulk import then in that case my file should look something like below,

i.e for each case i need to include name field "clones" , i was checking by putting the list of source IDs & destination IDs under single "clones" field but its not working in that case..

{

"links": [

{

"name": "clones",


"sourceId": "TestBUG-444",

"destinationId": "TestUG-555"

},

{

"name": "clones",


"sourceId": "TestBUG-51",

"destinationId": "TestBUG-52"

}

]

}


Yes, that's the only way to import multiple links.

Hi pawel,

I am following similar way of of importing the linking relationship via JSON,

But by doing this what i observed is:

Link type is coming as "clones" for both source ID & Destination ID, where as i was expecting it should come as "clones" under source ID and "is cloned by" under destinatioin ID,

can you pease help me ??

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

67 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you