My post function on the create transition is not firing, or if it is firing isn't updating the issue. What I am trying to do is, if the issue created is a story, to move the issue immediately forward to a certain part of the workflow. I've tested the post function on transitions other than the create transition and it works fine. I have also tried re-ordering the post functions with the script going first, last, in-between.
I've also added two post functions that might be interfering with it.
from com.atlassian.jira.component import ComponentAccessor
if (issue.getIssueType().name == "Story"):
currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
issueService = ComponentAccessor.getIssueService()
issueInputParameter = issueService.newIssueInputParameters()
transitionValidationResult = issueService.validateTransition(currentUser, issue.getId(),101, issueInputParameter)
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