Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automating state transition on PR merge based on target branch in a next-gen project

Emlyn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2020

Hi,

I've started automating our project issue transitions and have them happily transitioning for when a PR is created. We use bitbucket cloud and have integrated it with Jira.

We have multiple states once a PR has merged, based on the branch name. I don't see a way to do this in the automation rules yet.

I would have hoped that (following https://support.atlassian.com/jira-software-cloud/docs/smart-values-development/) I'd be able to use something like {{pullRequest.targetBranch}} but that doesn't appear to exist.

Am I missing something or is there some other way to get the target branch (or originating branch) of a PR? 

Thanks in advance!

1 answer

0 votes
tomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2020

Hey Emlyn, currently we have no support for target branch yet via smartvalues.

Emlyn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2020

Thanks tomas.

Is there any time line on when there might be expanded PR tags available in Jira?

Suggest an answer

Log in or Sign up to answer