how to add custom field to issue not seen in the UI

Brian Wotring March 12, 2015

I'm looking to insert meta-data/ into issues that are not seen in the JIRA UI. Basically, via rest, set a simple key:value item in certain issues.

Users would never see the data (field), it would be for reporting purposes only.  Is there a simple way to do this, or must all fields set be seen via the web facing part of JIRA ?

 

3 answers

2 votes
Midori
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.
March 13, 2015

If you go for simple key-value pairs, REST is OK and you want to hide this data from the user, why don't you try Entity Properties? It sounds this is exactly what you look for.

2 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2015

REST can be thought of as a machine-friendly way to represent the UI, so, no.  

In order to be able to set the value of a field, the field needs to be on the create or edit screen for REST to be able to set it, which also means the users will see it there too.  You could not put it on the view screen, but it will still be there on add/edit.

The only trick I can think of to do what I think you want is to move away from edit - place transitions in your workflow that can only be used by specific users (set this to the users who you log in as over REST), and have these transitions have the field(s) you want to protect on the transition screens.  Then don't put the field(s) on add/edit screens.

Even if you do that, your users will still be able to see the contents of these fields if they try hard - it will be visible in search.

Udo Brand
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.
March 12, 2015

It will be visible in the issue history as well, so it is not that hard for an user to see the content of these fields.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2015

Good point Udo, yes, there are all sorts of ways the data on the field will be visible.

0 votes
Brian Wotring March 13, 2015

Entity Properties looks very promising. Is there by chance a way to allow this data to be used in the built-in JIRA reporting or is that limited only to actual fields ? 

Suggest an answer

Log in or Sign up to answer