It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

303 views 5 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you