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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Update Reporter with Custom Field passed over via API

Hi there,

I am trying to come up with a way to update the reporter field with the value from a custom field.  The custom field is populated with the first and last name of the person who created the incident in Cherwell.  The reporter gets populated with a system name that the API uses when it creates the issue in Jira.

I have a manual automation task that fails all the time.

This is what I have in the Edit issue fields

"fields": {
"reporter": {"id": "customfield_10068"}

What should I have in order to replace reporter with the name value in the customfield.




1 answer

0 votes
Hana Kučerová Community Leader Jan 20, 2021

Hi @Steven Lees-Smith ,

which type has your custom field with the first and last name? Is it a User Picker (you can select from users) or Text Field (only text information is stored)?

The custom field comes in as a text field as it is populated in Cherwell and passed over to Jira - the field in Cherwell is the Display Name so just a text field.

Hana Kučerová Community Leader Jan 21, 2021

Unfortunately, I don't think it is possible. Reporter field is working with user accounts and AFAIK you need to obtain the user's id, but you've got only text information about name.

Are these users, who you are trying to store, Jira users? Are you able to change the way, how the data about the user are stored to the Jira issue? If so, maybe you could be able to obtain information about the user's id using Jira's REST API and use it for setting the reporter.

yeh they are all Jira users and currently when the tickets are being checked to reassign the Reporter field is being manually altered to match the Cherwell name that is passed over via the API.

I have been ratting around the API to see if there was a way to identify the ID based on a matching 'display name' or the like but with no success.

Hana Kučerová Community Leader Jan 22, 2021

Hi @Steven Lees-Smith ,

searching for user using REST API is available, see here. This is the basic endpoint and you should be able to send GET request like this (xxx can be display name of your user):

GET /rest/api/3/user/search?query=xxx

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

750 views 12 19
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