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.
#Jython code
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)
if transitionValidationResult.isValid():
issueService.transition(currentUser, transitionValidationResult)
Same issue here. Wondering if anyone figured out a solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
Any update, We are also facing the same problem that the script works in the other transition but create transition.
Thanks,
Sibi.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.