Error when trying to use openSprint() query

John Pritchard September 5, 2019

We cannot use the openSprint() query to return all items from an open sprint.

Example:

When attempting the following...

project = TESTPRJ AND sprint in openSprints()

Returns the following error..

An option provided by the function 'openSprints' for the field 'sprint' does not exist.

The project does have open sprints, s can't understand why this isnt working for us.

Any help greatly appreciated

2 answers

0 votes
John Pritchard September 5, 2019

Ok, So just in case anyone else has similar issue I think our Org has 2 custom fileds in place for the Sprint field, identified as cf[10816] and cf[10610]. When I used cf[10610] it worked.

so. 

project = TESTPRJ AND Sprint in openSprints()

Became

project = TESTPRJ AND cf[10610] in openSprints()

And it worked!

0 votes
Warren
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.
September 5, 2019

Hi @John Pritchard 

You haven't stated whether this relates to a cloud or server Jira.

On my cloud Jira, sprint needs to have an uppercase s, so Sprint in openSprints()

I'm hoping that it's as simple as that, so let us know

John Pritchard September 5, 2019

Thanks Warren, apologies it's Cloud jira we use.
I've tried upper and lowercase, still the same.

Suggest an answer

Log in or Sign up to answer