How to set a unique value on the original issue and on multiple clones?

Anton Haglund August 27, 2015

Hi, 

Today we are managing some of our work in both OnPoint and JIRA and we want to move everything over to JIRA. Today, the issue will first get created in OnPoint where it gets an ID. When it moves over to JIRA this ID will be copied to a field and later when it gets cloned - all cloned issues will inherit this unique ID.

The benefit that we get from this today is when we are tracking issues on our Agile dashboard, we can see which issues that are related/linked without opening them by presenting the ID together with the Issue key and the summary.

To get this functionality without OnPoint - my idea is to use a Groovy customfield with an if statement that will look at a select list and if the statement is true it will return the issue id (e.g. 96812). When the issue gets cloned I want the cloned tickets to inherit this id (96812). By doing it like that we would be able to have a unique id for all related issues that we can display in the Agile dashboard. The problem is to have a condition that prevents the cloned issue from setting its own issue id (e.g. 96813) instead of the "master issue's" (96812).

I don't know if this solution is more complicated than it needs to be, but I haven't found any other way to set a unique ID and then have the cloned issues to inherit the samt value - anyone that has done anything similar to this?

 

Thanks,
Anton

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2015

It sounds like you want multiple issues with the same ID. You can't do that. It is the primary key in the database. At best you could copy the original ticket ID into a custom field.

Anton Haglund August 27, 2015

Hi Joe, Thanks for your reply! Yes, I would like to copy the original ticket ID into a custom field - but I haven't found a solution for how to make the cloned tickets inherit that value. Do you have any ideas?

Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2015

If you just want to copy the parent ID to a custom field it can probably be done with a script. I prefer to keep to only using the base functions and long term plugins like jira-suite-utilities. If you search for scripts and issue id in the forum and google you may find an example you can use as a starting point.

Anton Haglund August 27, 2015

Thank you, I will look into that! We might have found a workaround for the problem but if that doesn't work I will research your suggestion. Thanks for taking your time!

TAGS
AUG Leaders

Atlassian Community Events