I'm trying to prevent a workflow transition if a pull request was not made for an particular linked ticket.
Example:
I can't find any help regarding this online, am I using the wrong string value in the conditional perhaps?
Thanks
-Lar
We had similar task but need to check if is there any commit related to the issue.
We can query issues using "development[commits].all > 0" but can't check this in workflow "Conditions".
The solution is as follows:
Now we can check if issue has commits in workflow conditions by checking "Compare Number Custom Field Condition" against "Has commit" custom field.
As for "Start Review" transition "In progress" -> "Code Review" we decided to not allow it manually.
It is configured to run only by trigger "Pull request created" or by Project Admin ('User Is In Project Role' condition) to deal with old issues with already created pull requests.
Finally developer just need to create a pull request and the issue transitioned automatically to "Code Review" status.
Thank you so much for this!!! This helped me solve a problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does this solution take into account the Jira ticket number being in the commit? Or just that any commit was made to a connected repository?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are on cloud and have an app providing Jira expression validators, then it is possible to check against content of the Development field. Maybe my previous post will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.