Want to update issue through API without preservation in change history

Tanner Wortham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2013

I want to make a change to an issue via the API, but I don't want that change preserved in change history. Usually my groovy code looks like so when I make updates:

MutableIssue myIssue = event.issue
myIssue.setFixVersions(event.issue.getParentObject().getFixVersions())
issueManager.updateIssue(userManager.getUser("automation"), myIssue, EventDispatchOption.DO_NOT_DISPATCH, false)

I'm guessing that I need to make a call to some other method, but I'm uncertain which. Can anyone lend a hand?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2013

This used to be easier than it is now. I would take a look at com.atlassian.jira.issue.managers.DefaultIssueManager#doUpdate, and call most of that except the setChangeItems bit.

They don't really want you to be doing this...

0 votes
Tanner Wortham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2013

i would have though jobin, nic, or jamie would have jumped on this already for some easy karma! i'm disappointed. ;)

TAGS
AUG Leaders

Atlassian Community Events