The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

JSON Import for Link History

Karsten Koop
September 22, 2020

I'm currently migrating a bugtracker database into Jira and I'm following the examples from this page. The examples cover both the creation of links between issues, and importing the history of changes of fields in the issue, which all works fine. But I don't see how the history of links of an issue would have to be written, or if it is possible at all. Is there some way to do this?

To be clear, I want to import entries of the type

                              old value      new value
USER 123 changed on 1/1/2020
relates to JIRA-123

into the changelog of the issue.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Karsten Koop
September 22, 2020

My workaround for now is to simply write something like

"history": [
{
"created": ...
"author": ...
"items": [
{
"fieldType": "custom",
"field": "relationship added",
"fromString": null,
"toString": "relates to JIRA-123"
}
]
}
]

This creates an entry in the history of the ticket which looks ok, but in the activity log it's presented as a field change instead of a relationship change, so there an entry like "User updated the relationship added" appears.