I have an automation that has a Manual trigger - it is not triggered by a Version event.
In my automation, a user enters a version name as input when this rule is run manually and in the automation I want to check that the version exists
So I have the version name from the user input but how do I either get other details about the version such as the id OR just check whether the version exists
I am trying
https://xxxxxxxx.net/rest/api/3/project/ITP/version?query=<user entered string>
and if the <user entered string> is a VALID version name, I get something like this in the response
body={self=https://xxxxxxxx.atlassian.net/rest/api/3/project/ITP/version?maxResults=50&startAt=0, maxResults=50, startAt=0, total=1, isLast=true, values=[{self=https://xxxxxxxx.atlassian.net/rest/api/3/version/35289, id=35289, name=abc, archived=false, released=false, projectId=12345}]}
But if the user enters an invalid string, the automation takes a long time to run then times out.
Is there a better way of doing this?