Transition: Start Progress
Added JIRA trigger
Branch created | Automatically transitions the issue when a related branch is created in a connected repository |
Post Function (note that it always shows success but assignee field remains unchnaged when create branch; only works in normal JIRA transition)
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
// Get the current user
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def Issue issue = issue
if (currentUser != issue.assignee) {
issue.assignee = currentUser
}
That is how they are designed. Triggers bypasses validators. See https://confluence.atlassian.com/adminjiraserver074/configuring-workflow-triggers-881683835.html
When a transition is triggered automatically, it ignores any conditions, validators or permissions configured on the transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post function should still execute. How does the transition tab know who the user is but the post function either doesn't know or doesn't execute?
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.