How to hde a field using REST API

I cannot find how to hide a field using the REST API - is it possible?

Looking through JIRA documentation, a field can be hidden when using the JIRA application, as below, but we want to configure JIRA project solely via REST API.

https://confluence.atlassian.com/adminjiracloud/specifying-field-behavior-776636443.html

 

The idea behind this is to return results that match a sequence or one or more characters.  This would require a jql search pattern with a leading wild card character - which is not supported.

~ '*a*' which is not supported.

 

The hidden field will have the same contents as a field it mirrors but with some leading character.(s)  For example

userId = "admin"

hidden_userId ="Xadmin"

Currently results that contain "m" in userId cannot be obtained unless the userId starts with "m" or "M".

Having the hidden mirrored field, we can fool the search by using the starting character sequence followed by the character we are searching for;

i.e. the  jql would be:

hidden_userId ~ 'X*m*'

which finds instances of userId containing "m" in any position.

 

 

1 answer

Hi Mirek,

To hide a field in JIRA, you will need to edit the Field Configuration. For now, you can only edit the Field Configuration from JIRA UI. As per ACJIRA-386, there is no REST API endpoint to edit Field Configuration.

I hope that this helps. 

Cheers,
Moga

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,327 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot