Hi,
In Jira we have Risk Owner custom field which is user picker. While creating a ticket or updating a ticket the Assignee field should be the same as Risk Owner field. So, can anyone help me on this requirement.
For eg
If my User Picker field name is called Risk Owner and I select myself as the Risk Owner then I should be the Assignee of that same JIRA issue.
Hi Parsa,
Create an automation rule based on a Field Value Changed trigger. Then select the Risk Owner field.
Then add a new action for Edit Issue.
Select the Assignee field.
Click the 3 dots next to the Assignee field and choose Copy From.
Then change the Field to copy value from to be the Risk Owner field.
Save and Publish.
@John Funk , in our jira we are using Automation lite. In that we are able to only edit issue but not edit field. So, can you suggest based on Automation lite plug in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk I tried this request using script when I am moving from one transition to another transition it working fine. But when I am editing the field value with in the transition the value for assignee is not changing. So can you pls help me on this.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.issue.MutableIssue
// Get required Managers
def customFieldManager = ComponentAccessor.getCustomFieldManager()
MutableIssue issue = issue as MutableIssue
// get a pointer to the Implemented By user picker field and its value
def userCf = customFieldManager.getCustomFieldObjectByName("Risk Identified By")
def implUser = issue.getCustomFieldValue(userCf) as ApplicationUser
// If the Implemented By Field is not null then set the assignee
if(implUser){
issue.setAssigneeId(implUser.username.toString())
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please send me necessary step how to copy the Risk owner custom field value to Assignee field while creating and editing an issue for an Risk issue type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.