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

Suggest an answer

Log in or Sign up to answer