Forums

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

JIRA cloud rest api of screen tab returns "Screen with id does not exist"

Sandesh Chatarmal {Revyz} September 26, 2022

I am connect app developer , i am able to get screens using jira API

GET /rest/api/2/screens

then to get screen tabs i am using API

GET /rest/api/2/screens/{screen_id}/tabs to retrieve screen tab data however it returns response 400 with following response

{
"errorMessages": [
          "Screen with id "screen_id" does not exist"
   ]
}

 

 

2 answers

0 votes
Trudy Claspill
Community Champion
September 26, 2022

Hello @Sandesh Chatarmal {Revyz} 

Welcome to the community.

If you have imbedded that REST API call into code then you need to use the proper syntax to indicate that "{screen_id}" is a variable that needs to be replaced with an actual value within the string you are using for the API. And you need to set the screen_id variable to the actual ID of screen you retrieved in the earlier API call.

Sandesh Chatarmal {Revyz} September 26, 2022

Hello @Trudy Claspill Thanks for your replay,

Sorry for the confusion, have used screen id there , it just the variable.

The actual request is:

GET /rest/api/2/screens/10002/tabs

My observations are:

if there is screen with scope of PROJECT it throws that error,

but now it throwing same error for other scope also.

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 26, 2022

Hi @Sandesh Chatarmal {Revyz} , welcome on the community :). You obviously invoke REST API with query

  • /rest/api/2/screens/{screen_id}/tabs

but you need to replace {screen_id} with identifier of the screen, like

  • /rest/api/2/screens/1/tabs
Sandesh Chatarmal {Revyz} September 26, 2022

Hello @Martin Bayer _MoroSystems_ s_r_o__ ,

Thanks for your replay,

Sorry for the confusion, i have used screen id there , it just the variable.

The actual request is:

GET /rest/api/2/screens/10002/tabs

My observations are:

if there is screen with scope of PROJECT it throws that error,

but now it throwing same error for other scope also.

So even though the screen exists i am getting same error

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 27, 2022

Hi @Sandesh Chatarmal {Revyz} and the error message is the same as with the {screen_id}?

Sandesh Chatarmal {Revyz} September 27, 2022

Hello @Martin Bayer _MoroSystems_ s_r_o__ 

The actual error message:

{
"errorMessages": [
"Screen with id 10002 does not exist"
]
}

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 30, 2022

ok @Sandesh Chatarmal {Revyz} can you share the response of /rest/api/2/screens ? I can't replicate the problem on my site. So I'd like to check. Few things came to my mind

  • there are no tabs in Team Managed projects
  • what are your user's permissions?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events