Skip to main content
1-Visitor
October 31, 2012
Question

How to use "HistoricFieldValue" in script?

  • October 31, 2012
  • 1 reply
  • 1356 views

Hi,

I want to check longtext field with its history value.

For eg:

Field Name: Discussion

if(Discussion==HistoricFieldValue("Discussion","July 31,2012"))

Note: I can able to create a get the "Discussion" field history in report using the "HistoricFieldValue" computation. But in Script I cant.

Let me is there is any way to check the field?

-Shankar Daniel

    1 reply

    16-Pearl
    October 31, 2012

    Hi,

    what kind of script are we talking about ?

    1. a js-trigger skript to run on the server
    2. a client side batch script
    3. anything else.....? ? ?

    Nevertheless in case of 1. and 2. you should try to fetch two whole Items (the "currentOne" and an "historicOne" ) using either the IssueBean(1.) the CLI or API (2.) and than get the "Discussion" field value from the two Items.

    HTH Matthias