So I am trying to create a post function plugin where it reset the Issue Key from ABC-123 (default sequence by JIRA) to ABC-888123. I notice there is a function call Setkey, but from the documentation , it doesnt tell u if that function set the issue key or some other key for that issue? Can someone clarify that?
I understand in theory we shouldnt be changing the key, but it's jsut how our current process work to reduce less confusion.
Community moderators have prevented the ability to post new answers.
setKey() is indeed affecting the unique key of an issue. The ID of an issue can be read via Issue.getId() - the is no (official) way to change it.
If you like the old key also to be found, you have to create a change history entry afterwards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.