We have DEVOPS triggers from BitBucket that get kicked off when Pull Requests are open; ie: "Send an email to this channel when a Pull Request is opened" or "add a comment to this JIRA when a pull request is opened"
Before Atlassian introduced "DRAFT" pull request state; we would simply put "WIP" in our pull request titles and we excluded the presence of this text from triggering our automations. Now; instead of using WIP in the title, we put the PR's into DRAFT status;....
How can we write the automation to still send a message when Pull Requests are open, but only when they are not in the draft state?
There is a state attribute for that trigger, {{pullRequest.state}}
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--
However, I recall from some other posts and suggestions it does not capture "draft". I recommend first experimenting by writing that smart value to the audit log to check if the draft ones show up as such.
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.