My board typically has JQL that selects all issues from the project. For example:
project = SP
However, my team sometimes needs to work on tickets from other projects. Instead of creating a duplicate ticket in the project SP linked to the original ticket in another project, I want to put a ticket from another project in an SP sprint. To display such ticket, the query I want to use for my board is something like:
project = SP or sprint in SP.openSprints() //does not work
Note that this is NOT the same as:
project = SP or sprint in openSprints()
Since the latter returns issues in ALL openSprints across all projects. The following does not work either:
project = SP or (sprint in OpenSprints() and Project = SP)
As it only returns tickets for the SP project.
ScriptRunner has a function called nextSprint("board"), but it does not seem to have a function for openSprint("board").
Any suggestions?
Thanks!