The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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.