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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to use "HistoricFieldValue" in script?

ptc-4672719
1-Newbie

How to use "HistoricFieldValue" in script?

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 1
mrump
14-Alexandrite
(To:ptc-4672719)

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

Top Tags