It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Track Changes in select field type custom field

Rahul Aich [Nagra] Nov 10, 2015

Hi

I have a single select field type custom field on our JIRA instance (6.1).

Say the select field has values A, B, C and D. 

My requirement is to identify issues which have changed the values from A to B sometime in the past.

Is it possible? With some scripting ? directly running queries on database? or via some plugin?

Rahul

 

3 answers

1 vote
Jeff Louwerse Nov 11, 2015

using Oracle you can do a query on the history this way.   I have my own materialized view to track and index the pkey but i think this has the right fields for a normal query.

SELECT CG.ISSUEID, P.PKEY || '-' || JI.ISSUENUM as PKEY
FROM JIRAUSER.CHANGEGROUP CG, JIRAUSER.CHANGEITEM CI, JIRAISSUE JI, PROJECT P
WHERE CG.ID = CI.GROUPID and CG.ISSUEID = JI.ID and JI.PROJECT = P.ID
    AND FIELD = '<Field Name Here>'
    AND DBMS_LOB.Substr(OLDSTRING, 200, 1) = 'A'
    and DBMS_LOB.Substr(NEWSTRING, 200, 1) = 'B'
0 votes
Steven Behnke Community Leader Nov 10, 2015

What sort of output do you need? I'd like you to be more clear in your use-case or requirements. Likely this could be accomplished with Script Runner or something of that nature. Please note that System Fields can be searched via the WAS function, supporting historical searching. Custom Fields do not support the WAS function.

0 votes
Rahul Aich [Nagra] Nov 10, 2015

I want to identify issues which have changed their values from A to B for my custom field. Is there a way i can achieve this?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

664 views 7 0
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you