Forums

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

How to use history value with two custom fields

Yatiraj Sharma
Contributor
August 4, 2025

I am trying to use below formula in jira structure and selecting sum over sub-items but it is not working as it returns error with "VALUE!"
IF JQL {
"BRP/PI" != "Q1 FY 25/26" and committed in ("No", "TBC")
}:
history.changes.Filter(
$.field = "BRP/PI" and
$.fromText = "Q1 FY 25/26" and
($.changegroup.timestamp >= DATE('2025-04-07') and
$.changegroup.timestamp <= DATE('2025-06-30'))
).Filter(
history.changes.Filter(
$.field = "committed" and
$.fromText = "Yes" and
($.changegroup.timestamp >= DATE('2025-04-07') and
$.changegroup.timestamp <= DATE('2025-06-30'))
).size() > 0
).size()

History error.png

1 answer

0 votes
Bo Zhao
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.
August 4, 2025

Hi Yatiraj,

Looks like you are trying some multi-layer filtering, especially a history.Filter within an upper layer Filter.

To narrow down the issue line, I'd suggest testing the filters inside out, just to pinpoint the issue layer by layer.

Suggest an answer

Log in or Sign up to answer