I am using a scripted field to show in a subtask its parent's assignee. I have:
return (parent?.assignee == null ? null : ApplicationUsers.from(parent.getAssignee() as User) as ApplicationUser)
and the template is User Picker.
However the field is show in the General tab of the issue, not in the People tab, without the link.
This is version 2.1.16 in JIRA 6.1.5
could you try this?
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.user.util.UserManager def userManager = ComponentAccessor.getComponent(UserManager) issue.parentObject?.assignee == null ? null : userManager.getUserByName(issue.parentObject.assignee?.name)
I am using a Participants CF from Jira Toolkit, and this works OK in my version of JIRA, this field is shown in the People tab: https://bitbucket.org/atlassian/jira-toolkit-plugin/src/4c309b834fb5bde709210b2bc0fd4d6e5d5243e8/src/main/java/com/atlassian/jira/toolkit/customfield/ParticipantsCFType.java?at=master Note the line: ApplicationUser assignee = userConverter.getUserFromDbString(issue.getAssigneeId());
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs