How do i count how many times a value has changed in a structure?

Margaret Dessypris Thomas July 15, 2021

In attempting to see how much churn is happening, we want to look at the number of times a fix version is updated on a story or epic. How do i count the changes of a field's value? 

We import the PI Name from JIRA Align into JIRA on a JIRA Epic I'd like to know how many times there were updates to these fields to show me how many times we're shifting work.   

What's the best way to report on this? I was thinking of counting the number of changes to  a field value. 

1 answer

0 votes
Hyrum Steffensen _Appfire_
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.
July 15, 2021

Hello Margaret,

Consider a scripting solution as found on the Atlassian Marketplace. In Power Scripts, use the fieldHistory() routine. For example:

string [] history = fieldHistory(key, "Fix Version");
number changeCount = size(history) / 2;
runnerLog(changeCount);

Due to Confluence Cloud security features, you may need to open the documentation posted in incognito mode or by logging out of Confluence.

Please note that I am a product engineer for Power Scripts and that I work for Anova Apps, an Appfire company.

Regards,

Hyrum

Suggest an answer

Log in or Sign up to answer