Hi all,
I want to change the state of an issue when the GIT pull request associate with it is merged. But I have to select the correct state depending on the destination branch of the pull request.
I explain :
- classical developments have to go on a "preproduction" branch
- hot fixes have to go directly on the "production" branch.
So I have to test the PR destination branch with the smart value {{pullRequest.destinationBranch}} . When I add this value to log, I see it, no problem.
But I don't know / don't find documentation on how to test this in a JQL condition or an advanced search comparison, any help ?
I've tried many things, with or without quotes, with "in" or "=" or "equals()"... Log always tells me that doesn't match. Here's some examples.
Advanced search comparison :
JQL Condition :
Hi @RaphGC -- Welcome to the Atlassian Community!
Have you tried using the match() function with a regular expression, and an advanced compare condition?
Kind regards,
Bill
Thanks @Bill Sheboy for the welcome, and thanks a lot for the answer, indeed, it seems to work with a regular expression.
I tried (without success) the match() function :
But I think I still have syntax problem. But you put me on the way with regex, and the next one is working :
Thanks again !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad to learn you got it to work.
And it appears when you were using match() that you were missing the grouping in the regular expression:
.match(".*(master).*")
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.