In one of our JIRA projects, when a component is chosen, sub tasks are automatically created and assigned to users.
For one user however, their name in JIRA becomes plain text in the assignee field until we switch it to someone else and then back to them.
How this is scripted:
- Workflow post function [create --- to do]
- Add post funciton
- Scriptrunner - Script Post Function
- Create sub task
- Condition:
import com.atlassian.jira.bc.project.component.ProjectComponent
import com.atlassian.jira.component.ComponentAccessor
for(ProjectComponent projectComponent: issue.getComponentObjects()){
if(projectComponent.getName().equals("xxxxxxxxxxxxxx"))
return true
}
return false
- issue.assigneeId = "Katie.Txxxxxxx"
For every other post function we script, their names show up properly, but this user does not. Katie's items need to be assigned to someone else, then back to her for her name to show up like all other JIRA users. She also does not get the notifications when the issue is created (how they want it).
Any ideas? I verified her name shows up properly in the system. This only happens to this one user.
