Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to get the Reporter/Raise this request on behalf of field value in a REST Endpoint


I have a REST Endpoint that read from an external API to get values into jira service desk portal request fields based on the user submitting the request. It works fine for the most part since the reporter field is the current user logged in and submitting the request. So, this little piece of code I have in the REST Endpoint accomplish what I want:

ApplicationUser loggedInUser = ComponentAccessor.getJiraAuthenticationContext().loggedInUser

def email = loggedInUser.getEmailAddress()


However, when an agent is submitting a request thru the portal, they could potentially submit a request on behalf of another user, so how do I access the value of the "Raise this request on behalf of" field in the REST Endpoint?


Thank you in adavance!



1 answer

0 votes

What is your link between the issue and the REST endpoint? How are you calling it?

It this something being called by a behaviour? Or in a post-function?

Wherever you have your issue object is where you'll need to get the reporter.

Then when calling the rest endpoint, you can include the reporter's details with the request data.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

269 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you