In the All Issues section I am trying to pull a report but for some reason "Epic Name" is blank. Epic Link has the name but when the report is pulled out of Jira it only gives me the Epic Link number. I need to have the Epic Name associated with all of the tasks so I can create a report.
Does anyone know how to do this?
This will do the trick:
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib" xmlns:core="jelly:core">
<jira:GetProjectRoleActors projectkey="ABC" projectroleid="10001" var="roleactors" >
<core:invoke on="${roleactors}" method="getRoleActorsByType" var="groups">
<core:arg type="java.lang.String" value="atlassian-group-role-actor" />
</core:invoke>
<core:forEach var="actor" items="${groups}">
${actor.group.name}
</core:forEach>
</jira:GetProjectRoleActors>
</JiraJelly>
Of course, you'll need to specify your own project key in place of my 'ABC', and you'll need to use the correct projectroleid in place of my '10001'.
David,
Is there a similar way of getting just the Users in a particular role and getting their User Ids. I am trying the below script, I get the users but they are in the form of [user1:1] How can I get just the user name? I tried actor.users.name, actors.users.id.
<jira:GetProjectRoleActors projectkey="ABC" projectroleid="10002" var="roleactors" >
<core:invoke on="${roleactors}" method="getRoleActorsByType" var="usernames">
<core:arg type="java.lang.String" value="atlassian-user-role-actor" />
</core:invoke>
<core:forEach var="actor" items="${usernames}">
Testing: ${actor.users}
</core:forEach>
</jira:GetProjectRoleActors>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To get users you need to do the second loop because {actor.getUsers()} is a Set.
<core:invoke on="${roleactors}" method="getRoleActorsByType" var="users">
<core:arg type="java.lang.String" value="atlassian-user-role-actor" />
</core:invoke>
<core:forEach var="actor" items="${users}">
<core:forEach var="user" items="${actor.getUsers()}">
Name: ${user.getName()}, Display Name: ${user.getDisplayName()}, Email: ${user.getEmailAddress()}
</core:forEach>
</core:forEach>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.