Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 define 'Team' information through JIRA REST API?

Hi,

How to define 'Team' information through JIRA REST API? It gives always an error: "text: Field 'Team' cannot be set. It is not on the appropriate screen, or unknown."

Team can be defined with browser but it's not even visible in REST API after that. Can it be handled through REST API at all?

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted

Simo- Are you referring to a custom field or the Team used by Tempo? If it is the one used by tempo it is teamId=1  where the number 1 would be changed to the number for the team.

example: https://jira.domain.com/rest/tempo-timesheets/3/worklogs/?dateFrom=2019-01-01&dateTo=2019-01-14&teamId=59

Hi! It's a good question. ;) I think we are not using Tempo. So it has to be some custom field. But I'll figure that out...

Like tpw_thomas likes this

I was referring to a custom field. :) It came out by filling the Team field by browser and comparing the API output to the output without Team info.

Thanks!

Like Jan likes this

Good to hear you figured it out :)

bump for this, I am having the same issue...it appears to be customfield_10800 for me. when I hit the endpoint using GET I get a structure like

"customfield_10800": { "id": "168", "title": "something", "isShared": true }

where "something" is my team name. However, when I use the same structure in my POST request, I get the error

"customfield_10800": "The Team must be a string"

any advice?

edit: resolved, apparently the value of my custom field should have just been the id

Suggest an answer

Log in or Sign up to answer
TAGS

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