Jira User Object Types In Scripts Explanation

Stefan Johansson August 27, 2014

I have when writing scripts come across several ocations when i get errors such as "this user type cant be cast to that user type". And when i access the issue.assignee/assigneeId/assigneeUser - whats the difference? And what kind of user does e.g. a User Single Select want?

Is there somewhere I can read about all this?

1 answer

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2014

It's confusing. This is the best explanation of the different types of users and why they exist: https://developer.atlassian.com/display/JIRADEV/Renamable+Users+in+JIRA+6.0

issue.assignee and assigneeUser are synonyms and return a com.atlassian.crowd.embedded.api.User. I don't know why two methods are required.

assigneeId just returns the username. Or could it be the user key? I don't even know.

Stefan Johansson August 28, 2014

Thanks that helped me understand it somewhat. Its indeed confusing.

Suggest an answer

Log in or Sign up to answer