Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I modify issue roles that do not show up on edit screen of issue using REST API?

Alp Alpant
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2022

Hello! 

I am trying to replace inactive users on issues with different roles to active users using REST API, yet I can not replace some users in roles that do not show up on edit screen of issue. When I try to replace, I get an error like this;

"Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown."

I do not want to edit issue layouts. How can I work this out?

Thanks in advance.

1 answer

0 votes
Florian Bonniec
Community Champion
September 27, 2022

 

Hi @Alp Alpant 

So you are trying to update the assignee of an issue whiteout having this field on the edit screen right ?

 

You cannot do that as REST API do not allow to do more than a user would be able to do through the UI. So, of you cannot do it through the UI you will not be able to do it using the REST API.

 

Regards 

Alp Alpant
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2022

Not only assignee role, other roles as well. Thank you :) @Florian Bonniec

Florian Bonniec
Community Champion
September 27, 2022

It's the same principle for all actions you will want to perform using the REST API, You have to be able to do it through the UI.

Suggest an answer

Log in or Sign up to answer