Is there a way to update the assignee from a custom field value based on components during a workflow transition? For example:
Component = xyz
Owner (Custom Field) = Jane Smith
Assignee = John Doe
I'd like to update the Assignee field to Jane Smith (which the value of the Owner) when the issue transition from IN PROGRESS to Development.
There is a post function called Assign from custom field but that's a straight assignment, no need to specify condition.
here is the scriptrunner code:
if ('xyz' in issue.components*.name and issue.reporterId = 'userId'){
issue.assigneeId = 'newUserId';
}
Hello,
You can not accomplish it without an app. You would need an app like Power Scripts, Scriptrunner, Automation for Jira.
If you want to use the Power Scripts app then you can write a post function like this;
if ("xyz" in components and reporter = "jane.smith") {
assignee = "john.doe";
}
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.