Problem with my request
Asked by Equipe Support Squash:

Hello,

I encounter a problem when I run the request : Sprint in openSprint()

![2024-09-09_12h25_25.png](/t5/image/serverpage/image-id/346332i10A3BEFE2317419D/image-size/large?v=v2&px=999 "2024-09-09_12h25_25.png")

I have error messages :

The option provided by the 'openSprints' function for the 'Sprint' field does not exist. Several custom fields have the name 'Sprint'. Try using one of the following terms: cf\[10020\], 'Sprint\[Dropdown\]'.

And when I search in the custom field, I only have one Sprint field locked

![2024-09-09_12h26_09.png](/t5/image/serverpage/image-id/346334i83C6E4BD905D7427/image-size/large?v=v2&px=999 "2024-09-09_12h26_09.png")

Do you have any solution ?   

Regards,

Claire


Answers:
author: Manon Soubies-Camy
body: Hi [@Equipe Support Squash](/t5/user/viewprofilepage/user-id/257840),

The screenshot shows that you're typing Sprint in Sprintactif() instead of the correct JQL function:

```
sprint in openSprints()?
```

![openSprints.png](https://community.atlassian.com/t5/image/serverpage/image-id/346335i4BA15D406039F04B/image-size/large?v=v2&px=999 "openSprints.png")

Even if your profile language is set to French, you need to type JQL functions as written [in the documentation](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#openSprints--).

Hope this helps!

- Manon

comments: author: Equipe Support Squash
body: ![2024-09-09_15h30_55.png](https://community.atlassian.com/t5/image/serverpage/image-id/346337i3B0B0CA831E36405/image-size/large?v=v2&px=999 "2024-09-09_15h30_55.png")

Yes sorry i didn't send the good pictures because I test several ways of writing Sprint


author: Manon Soubies-Camy
body: Thanks for the additional screenshot! Can you confirm that you can see several different custom fields named "Sprint" in the administration? Looks like this is the issue. Since you also have a dropdown custom field named Sprint, Jira doesn't know which one to use in the query.

Can you try this JQL query instead:

```
cf[10020] in OpenSprints()
```

10020 is the id of the original Sprint custom field, the one created by Jira.


author: Equipe Support Squash
body: Hello,

Unfortunately, I only see the one custom fields Sprint (on the second screenshot)   

I already test with this JQL but I cannot understand why overnight the first request stop working  
No new custom field with Sprint in the name was created


author: Manon Soubies-Camy
body: Do you have any team-managed projects?

I created a new dropdown field that I named "Sprint2" in a team-managed project, and it does not show up in the global Custom fields menu. I do see it in the [global audit log](https://support.atlassian.com/jira-cloud-administration/docs/audit-activities-in-jira-applications/) though:

![audit-log.png](https://community.atlassian.com/t5/image/serverpage/image-id/346350iDEF45574EA4A39C4/image-size/large?v=v2&px=999 "audit-log.png")

Could that be the issue?


author: Equipe Support Squash
body: When I searched i could find this one :![2024-09-09_16h33_26.png](https://community.atlassian.com/t5/image/serverpage/image-id/346360i719BB23E6D607F97/image-size/large?v=v2&px=999 "2024-09-09_16h33_26.png")

It could be the issue ?


author: Manon Soubies-Camy
body: Looks like it! You can try the following JQL query to understand which project this comes from:

```
"Sprint[Dropdown]" is not empty
```

Or just ask your colleagues if they remember who created it on that day :)


author: Equipe Support Squash
body: Unfortunately, no one remember creating it..

And don't know where I can run this request to find the custom field created


author: Manon Soubies-Camy
body: You can run it in the issue search, where you ran the "Sprint in openSprints()" one. It will only work if users filled out this field, though - if no one uses the new Sprint field, it won't return anything.


author: Equipe Support Squash
body: Hello,   

Do you have any ideas to find the ID of the Sprint\[dropdown\], rename it, or delete it?   
or could also get an API to do it ?

Thank you very much for your help !   


author: Manon Soubies-Camy
body: Hi [@Equipe Support Squash](/t5/user/viewprofilepage/user-id/257840),

Sure, you can rename the custom field from the team-managed project's admin menu:

![Capture d?e?cran 2024-09-10 a? 09.57.17.png](https://community.atlassian.com/t5/image/serverpage/image-id/346499iA5025B7E14C7D752/image-size/large?v=v2&px=999 "Capture d?e?cran 2024-09-10 a? 09.57.17.png")

Hope this helps!


author: Equipe Support Squash
body: Hello Manon !!   

Thank you ! It's help me a lot !  
It's now working !   

Have a great day !


author: Manon Soubies-Camy
body: Great, thanks for letting me know! :)


author: Jim Knepley - ReleaseTEAM
body: This question has come up before:

<https://community.atlassian.com/t5/Jira-questions/Error-when-trying-to-use-openSprint-query/qaq-p/1171282>

<https://community.atlassian.com/t5/Jira-questions/JQL-openSprints-stopped-working/qaq-p/1208181>

But your example query using the capitalized "Sprint" field looks correct. I wonder if there's some issue because you have a custom field named Sprint.

comments: author: Equipe Support Squash
body: Hello,

Yes, these too :

<https://community.atlassian.com/t5/Jira-questions/OpenSprints-function-does-not-work-in-JQL-Jira-anymore/qaq-p/2606463>

<https://community.atlassian.com/t5/Jira-questions/Filters-Not-Working/qaq-p/2614650>

The query stopped working overnight.

I'm following the same steps but cannot go further due to locked field


Tags: cloud

jira-work-management-cloud