How to Set Assignee to a project role member based on if condition

Rishit December 1, 2016
 

1 answer

1 accepted

1 vote
Answer accepted
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2016

Here you are

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.roles.ProjectRoleManager

if(true)
 issue.getAssigneeId( ComponentAccessor.getComponent(ProjectRoleManager.class).getProjectRoleActors().getApplicationUsers().iterator().next().getKey())
Rishit December 2, 2016

Thanks Vasiliy.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events