Forums

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

How to avoid to track changes in history for a custom field?

ION Information Systems
Contributor
April 5, 2012

Hello there,

Is there any way to configure JIRA in order to not update or hide the info in the history of a custom field?

The requirement is that a user can fill a value (a kind of rating) but once the value is recorded nobody must see it, neither in screens nor in the history tab.

The value will be used by top management quering the database direclty..

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
Radek Kantor
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.
April 5, 2012

Hi, this CF is your implementation or it is one of the standart JIRA CF as text field, number field atc. ?

ION Information Systems
Contributor
April 5, 2012

Hi, it's a JIRA Select List CF.

Radek Kantor
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.
April 5, 2012

Agree with Jobin, create new CF type (extends SelectCFType), in update or create method handle your changes and disable history log by

@Override
	public String getChangelogValue(CustomField field, Object value) {
		// No log into history tab
		return null;
	}

Like OlegIs likes this
ION Information Systems
Contributor
April 5, 2012

It sounds reasonable to me. Thanks.

Sivaz
Contributor
April 6, 2013

Hi,

Will this disabling of history log also disable email notification if this field value is changed? What if I want to disable history log, but still want the update event to be fired? As of now if this returns null, the changelog.vm email template will not have this field in the $changelog.getRelated("ChildChangeItem") either.

Oren Zehavi August 21, 2023

@Radek Kantor Your solution is causing the ISSUE_UPDATED event to not be triggered when updating the field via the edit screen. 

Any solution for that? 

Thanks!

0 votes
Jobin Kuruvilla [Adaptavist]
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.
April 5, 2012

It is better that you create a new custom field. With the standard JIRA one, it will surely record the changes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events