Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to get usr email address from jira-groups,ProjectRole using Java API?

Ramesh Lakshmanasamy August 28, 2018

I need get user email address from jira project Role,Assignee,Watchers,ProjectRole. using java API.

1 answer

Ramesh Lakshmanasamy August 28, 2018

i need java API @Bastian Stehmann

Bastian Stehmann
Community Champion
August 28, 2018

Ah, sorry, my mistake.

For Assignee you need to get the Issue (https://docs.atlassian.com/software/jira/docs/api/7.12.0/com/atlassian/jira/issue/Issue.html), then you can get the Assigne with getAssignee, you can get the email-address the from the resulting ApplicationUser.

To get the Watchers, you can use the WatcherManager https://docs.atlassian.com/software/jira/docs/api/7.12.0/com/atlassian/jira/issue/watchers/WatcherManager.html

Bastian Stehmann
Community Champion
August 28, 2018

And for ProjectRole, please check the ProjectRoleManager https://docs.atlassian.com/software/jira/docs/api/7.12.0/com/atlassian/jira/security/roles/ProjectRoleManager.html, there you will get the project roles, the you can get the ProjectRoleActors and from there the Users.

 

For Groups, use GroupManager  https://docs.atlassian.com/software/jira/docs/api/7.12.0/com/atlassian/jira/security/groups/GroupManager.html

Suggest an answer

Log in or Sign up to answer