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

can't create issue w/ labels via API on some backlogs/boards

Ken Yee I'm New Here May 10, 2021

I have code that works fine to create an issue on some backlogs but on others, the labels are not set.  There's no error from the JIRA server.

 

The JSON being sent looks like this:
{
"fields": {
"project": {
"key": "APAI"
},
"summary": "H2 PreWork",
"description": "test",
"issuetype": {
"name": "Task"
},
"labels": [
"SFQuality-H2",
"App",
"Testing-Preparation"
],
"priority": {
"name": "Medium"
}
}
}

 

The response that comes back has zero errors:
{"id":"1714366","key":"APAI-432","self":"https://ourjira.internal.com/rest/api/latest/issue/1714366"}

but when you look at the ticket, the labels are missing.

The identical code works fine on a different backlog.

And you can add new labels to this backlog if you edit the ticket/issue...it's not like it's blocking any new labels from being created.

 

 

1 answer

0 votes
Ken Yee I'm New Here May 11, 2021

Turned out it was because there was an automation rule on this backlog that mucked w/ labels (set them based on content in the ticket).

This caused it to blank out the labels that were sent in via the API :-(

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