I am trying to write post function that reset user's values (values passed by user to transition screen form). I also need to move those values to the subtask issue so i used 'Create a sub-task' script post function variant and pass this code to it:
import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.MutableIssue def i = transientVars.issue as MutableIssue def originali = transientVars.originalissueobject as Issue println originali.summary println i.summary i.summary = originali.summary
It works, but the problem is with issue history:
Issue summary before transition was '10'. During transition i passed '11' to summary field on sreeen. After transition execution i got this history entry:
The values are swapped. How to fix it ?
Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot