The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Is there a way to get parent (source) branch of another branch?

Wojtek Pilwinski
February 21, 2022

Hello,

I would like to create Jira automation rule that transits the issue when pull request is created and another rule which transits issue when pull request it is merged.

But I want rule is triggered only if {{pullRequest.destinationBranch}} is the same as branch from which I created {{pullRequest.sourceBranch}}.

So the condition here should be something like that:

```if {{pullRequest.destinationBranch}} == {{pullRequest.sourceBranch.SOURCE_BRANCH}}```

But the problem is SOURCE_BRANCH. I other words how to get branch from which was created another branch (in that case pull request source branch).

 

For any help great thanks in advance.

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.