It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to copy fixVersion from one ticket to another using plugin?

Eva Feb 21, 2012

So i have a post-function plugin that pretty much synchronize fields from one ticket to another. The problem I have is copying the latest fixVersion from ticketA to ticketB.

I read the post on SO, and I kinda follow his code but that doesnt work for me. No matter what I do, the fixVErsion remains unchanged.

My code is below. Let me konw if anyone knows how to fix this!

ImportUtils.setIndexIssues(true);
MutableIssue issueToBe = issueManager.getIssueObject(internalIssue.getId());		
issueToBe.setFixVersions(prodIssue.getFixVersions());
issueToBe.store();
ImportUtils.setIndexIssues(false);

1 answer

Eva Feb 21, 2012

Hmm, i will try later tonight. But it doesnt make sense that it works for other "Jira fields" like description, but not fixversion.

Jobin Kuruvilla [Go2Group] Community Leader Feb 21, 2012

Actually, it does. Description is stored in the jiraissue table itself but fixversion, components etc are stored in different tables and has relation to the jiraissue table. In the above case, you are only storing the jira issue which is not enough.

IssueService on the other hand will do everything behind the scenes for you.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

148 views 21 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you