SIL-lastFieldHistory routine returning user and date but empty values

Hi,

I'm trying to access field change values using lastFieldHistory() routine and having a problem. It returns the user, date and Field name that is changed but empty values in place of changes. Using the below versions

  • Jira - 7.0
  • JJupin - 3.1.1
  • katl-commons - 3.1.1

    The code is below
     

    string[] lastChange = lastFieldHistory(key);
    string[] ret = "Issue " + key + " was last changed on " + lastChange[1] + " by " + userFullName(lastChange[0]);
    ret += ": Field " + lastChange[2] + " from >>" + lastChange[3] + "<< to >>" + lastChange[4] + "<<";
    return ret;
    logPrint("INFO", "Change history of Issue is" + lastChange);


      Returns the value

    Issue RS-33 was last changed on 2015-12-07 17:20:44 by admin|: Field description from >><< to >><<
    //LogPrint of lastChange array is
    admin|2015-12-07 17:20:44|description||
Any help much appreciated.

1 answer

Hi,

I've investigated this issue and it doesn't seem to occur on every field (but it does on description, for example).

We're getting the changes from DefaultChangeHistoryManager,  and, for description field, for example, we get this:

image2015-12-10 11:6:20.png

As you can see, the values are not registered.

Unfortunately, I don't think the fix is something in our power.

 

Alexandra

Hi Alexandra, Yes, I see the values are not getting registered. I guess the issue is only with Description and Summary fields. Thank you for the response.

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 ...

2,968 views 12 18
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