Forums

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

SIL - fieldHistory routine returning only dates and empty values

Błażej O_
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.
February 12, 2014

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

1 vote
Answer accepted
Alexandru_Iacob
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.
February 12, 2014

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.

Alexandru_Iacob
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.
February 12, 2014

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.

Błażej O_
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.
February 12, 2014

This works like a charm!

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

0 votes
aishwarya_krish December 7, 2015

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

0 votes
Błażej O_
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.
February 12, 2014

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]


0 votes
Florin Manaila
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.
February 12, 2014

Hi,

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

Thanks,

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events