{
"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 ??
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.