Using Jira Align API to Filter Work Items by the end of any text field
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Sometimes it is required to filter Work Items by the end of a text field.
Solution
In the same way, the filter startswith can be used to filter text fields starting with some character and/or string, it is possible to filter any text field using endswith as well.
As an example, to get a list of Work Items with Blank Space at the end of the Title, just add the parameter filter=endswith(name,' ')on a GET Call similar to this:
1
https://[INSTANCENAME].jiraalign.com/rest/align/api/2/[ENDPOINT]?$filter=endswith(name,' ')
Was this helpful?