Hi,
Searching for specific Release / Version via API using
/rest/api/3/project/{projectIdOrKey}/version?query=string
and the results are not strict:
if I have a version 'aa' and another one 'aaa', the search for 'aa' brings both.
What is the proper way to request a strict string match with the Jira Cloud API?
Thank you
Hi @Inna S
How are you calling the Get Project Versions Paginated one: automation rule, external app, something else?
Regardless of the approach, the documentation only describes the query parameter used to search the name or description, with little other filtering. When you need more granularity, perhaps initially filter on what you describe using the call and then use a regular expression on the results. For example, with an automation rule that could be with the match() function.
Kind regards,
Bill
Hi @Bill Sheboy ,
thank you for the suggestion.
I am running from within the automation rule, looking for specific version
rest/api/3/project/<projkey>/version?query={{Version}}
The ultimate goal is to get the scope creep info: items added to a version past its start date. But because Jira has nothing of the sort, I'm going step by step to retrieve the version details, issue history, compare the dates, etc. And now there are extra steps (looping over the list, regex) to get to the version.
It sounds like a lot of work for the basic functionality that should have been in the product long ago.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Like any programming language, Atlassian Automation has its strengths and weaknesses. As it continues to evolve with new features, keep watching for community posts and the weekly release blog of improvements that may help make your scenario easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same question here, it would be great if Jira could support rest/api/3/project/<projkey>/version?query={{Version}}&matchType=EXACT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.