SIL - fieldHistory routine returning only dates and empty values

I have a problem with one of our SIL script custom fields.

I'm trying to get the history of one of the custom fields. fieldHistory routine returns dates properly, but in place of changes it returns only empty values.

The code:

string[] myfield_history; //12607
string complete_list;
string m_breakline_key = "JIRA-274";
string m_breakline = substring (%m_breakline_key%.description, 1, 3);

myfield_history = fieldHistory(key, "Opis rozwiązania");
for (number i=0 ; i < size(myfield_history); i = i + 1)
	{
	complete_list = complete_list +">"+ myfield_history[i] +"<" + m_breakline;
	}

return complete_list;

What we get:

SIL - Historia serwisowa:

>2014-02-12 17:27:09<
><
>2014-02-12 17:28:58<
><
>2014-02-12 17:45:13<
><
>2014-02-12 18:06:39<
><

Any ideas what might be wrong?

4 answers

1 accepted

Accepted Answer
1 vote

Hi Blazej,

I have tested and confirmed the problem.

I have opened an issue on: http://bugs.kepler-rominfo.com/browse/IMJ-113.

I will attach a snapshot there for katl-commons containing the fix.

Thanks for pointing it out.

I have resolved the issue and attached the snapshot jars containing the fix there.

Please update to katl-commons 2.5.16-SNAPSHOT and let me know if everything is ok.

This works like a charm!

That was an insanely quick bug fix :D Thanks for the awesome help.

Hi,

Can you tell us the JIRA version and the type of the "Opis rozwiązania" custom field?

Thanks,

We're using:

  • Jira - 5.2.5
  • katl-commons - 2.5.14
  • Kepler Custom Fields - 2.1.11

Opis rozwiązania
Free Text Field (unlimited text)
Issue type(s):
Global (all issues)
[Default Text Renderer]


Hi Alexandru,

I'm trying to access field change values using lastFieldHistory() routine and having the same 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
  • katl-commons - 3.1.1
      

Thanks,

Aishwarya

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

433 views 7 5
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