Jira User Object Types In Scripts Explanation

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

Accepted Answer
0 votes

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.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,867 views 2 7
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you