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

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.

Suggest an answer

Log in or Sign up to answer