Capture historical changes of Due Date to a custom field

Issue #589 resolved
Yong Zheng Yu created an issue

How do we use Calculated Text Field to capture the historical field value changes for Due Date?

Tried toString(fieldHistory({00012})) but always return empty value.

Appreciate some advices.

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Yong,

    I have tested the following string expressions in advanced parsing mode on JIRA Workflow Toolbox 2.2.36, and they work correctly:

    Doesn't include 'Due date' current value. Shows time parts (always 00:00) and uninitialized value (as , ,):

    toString(fieldHistory(%{00012}))
    

    Doesn't include 'Due date' current value. Shows only date part and skips uninitialized value:

    toString(textOnNumberList(fieldHistory({00012}), dateToString(^, LOCAL, SERVER_LANG)))
    

    Includes 'Due date' current value. Shows only date part and skips uninitialized value:

    toString(textOnNumberList(fieldHistory({00012}) APPEND [{00012}], dateToString(^, LOCAL, SERVER_LANG)))
    

    Please, confirm the version of JIRA Workflow Toolbox you have installed.

  2. Yong Zheng Yu reporter

    I have installed 2.2.36

    I found the syntax problem. Thanks for the string expression samples above.

    It is now working perfectly.

  3. Log in to comment