How to keep linked issues id once data is moved to other instance

Hello,

We have a project (something like service desk ticket) that has relatively high volume. We can archive the data into another JIRA instance only for this high volume project following the instructions

https://confluence.atlassian.com/display/JIRA062/Restoring+a+Project+from+Backup

However, some of the tickets are linked to other projects. Once I moved data to the archived instance, the issue links will not exist anymore. Is there a way to store (even in text) the linked issue IDs in another field? Like a scripted field? How do other companies deal with this situation? I believe the change history of the ticket still have the linked issue IDs but how can I extract the data in Navigator?

Thank you for your help,

Sara

2 answers

1 accepted

I use changeHistoryManager in a script field to get the history. (Thanks to Script Runner)

import com.atlassian.jira.ComponentManager

import com.atlassian.jira.issue.history.ChangeItemBean

def componentManager = ComponentManager.getInstance()

def changeHistoryManager = componentManager.getChangeHistoryManager()


def ch = changeHistoryManager.getChangeItemsForField(issue, "Link")


if (ch) {

return ch as String

}

else {

return null

}

We had a set of similar requests in our practice. We do the following: create the text custom field, store value there using the script runner (the value highly depends on requirement). Then make the import of the project with that custom field, and then write a script that will convert the data at that field into proper value.

Alexey,

Thank you so much for your pointer. I'll have to learn how to store the link value into a text custom field.

Sara

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,080 views 13 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot