How can I get content from a hidden issue field via REST API?

Rafael Costa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2022

I need set a hidden field on the screen and I did it with API 

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

with overrideScreenSecurity parameter.

 

But when I get issue back with API

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

The field updated returns None as content.

How can I retrieve his content?

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2022

Hi @Rafael Costa ,

Reat APIs follow the same rule used by user during interaction with application. If something can't be done via UI, the same behaviour will be respected by the REST Apis.

How did u implement your hidden field? 

Fabio

Rafael Costa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2022

Hi @Fabio Racobaldo _Herzum_ ,

These fields would be importants to make filters only. Him contents is not  relevant for the users.

I understand the rules of rest api, but in this case isn't applicable once I can update a hidden/blocked field via REST and I can't make the same via UI.

So if there is an way of update a hidden field, I think that exist an way to retrieve it. Otherwise I would try others ways to get it, but before I would like know about it

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2022

Hi @Rafael Costa ,

please specify how you implemented this hidden fields. Are they just be not on the view screen?

Rafael Costa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2022

@Fabio Racobaldo _Herzum_ I achivied to do it now!!!

The info that you remember me was very important: " If something can't be done via UI, the same behaviour will be respected by the REST Apis."

I know if I fill a field and take off him of  the screen, I still can retrieve his content via JQL. So instead use the GET issue API, I used the POST search API and the issue field returns with the expected value!

So, thanks anyway!!!

Suggest an answer

Log in or Sign up to answer