I want to create an automation that moves issues depending on the destination branch in Github. Is there a way to use a regex to check if the returned url contains a specific text and then build my if cases based on that?
Something like:
if {{pullrequest.destinationbranch.url}}.contains("text"), then do something.
Using a normal hook I use:
key in ({{webhookData.pull_request.head.ref.match("([PIPD]+-\d+)")}})
I'm looking for the same but using the Pull Request trigger instead of the webhookData
Hi @Ferran Salcedo -- Welcome to the Atlassian Community!
Yes, you can do that.
Please take a look at the match() and other text parsing functions to see what helps: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
Of note: I have found the regular expression parsing in automation rules may not support everything in your favorite flavor of RegEx so some experimentation may be needed.
Kind regards,
Bill
.
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.