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

Update both issue type and fields for Jira issue Edited

How can I update issue type field and simultaneously (in the same request) update another field using Jira Cloud REST API?

For instance - I've got 2 issue types:

  1. Task that does not have priority field
  2. Story that has priority field

The problem is that when I send a request to the given endpoint to change the type of an already existing issue from Task to Story and pass the particular priority, I'm provided with the error in the response.

"errors": { "priority": "Field 'priority' cannot be set. It is not on the appropriate screen, or unknown." }

Jira Cloud REST API endpoint and payload:

PUT /rest/api/3/issue/{issueIdOrKey}

Screenshot 2021-04-14 135909.png

1 answer

0 votes
Warren Community Leader Apr 14, 2021

Hi @Arthur Kashapov 

I suspect that you may have to do this in 2 separate calls i.e. first change the issuetype and then set the priority.

Have you tried setting the priority of an existing Story just to confirm that it works correctly?

Hi. Yes, we've already tried and in separate calls it works fine. The drawback is obvious, since we have to either send 2 synchronious requests or work around asynchronious ones and I hoped that there was another solution. Nevertheless, thanks for the response.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
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