Hi All,
We have users from different organizations so we created user full names like the below one
Ex: Full name ( Organization name).
Now I'm trying to create a scripted field to get the organization name based on issue assigned to
This is the script i used, is there anything in need to change ??
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
def assignee = issue.getAssignee()
if (assignee ==~ /Oraganization 1/){
return organization 1
}
if (assignee ==~ /Oraganization 2/){
return organization 2
}
if (assignee ==~ /Oraganization 3/){
return organization 3
}