Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,427
Community Members
 
Community Events
184
Community Groups

Default Pull Request tasks for release branches

Thank you for the new Default Task feature in Pull Requests. For our use case, it's a higher priority to have default tasks in release branches only, as a final sanity check before going into production. Is this on your roadmap?

2 answers

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 07, 2022

Hello @Aaron Sterling ,

Thank you for reaching out to Atlassian Community.

The Default Tasks configured in Repository settings apply to all branches, regardless of the branch name. I'm afraid that it's currently not possible to define Default Tasks to a specific branch naming/pattern, so I went ahead and raised a feature request to implement this functionality: 

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.

Thank you, @Aaron Sterling .

Kind regards,

Patrik S

Voted and watched. Thank you!

Patrik, you write: "The Default Tasks configured in Repository settings apply to all branches, regardless of the branch name. "

I'm sorry but this is not true. The Default pull request tasks page explicitly states

"The following tasks will be added on new pull requests by default. Note that default tasks are not created for pull requests based on release branches."

Can this please be changed so that release branches also get these tasks? I've just created a release PR and the tasks are not there.

Like Ozgur Vatansever likes this

@Patrik S  What is the reason behind disabling PR tasks for only release branches?

It says:

The following tasks will be added on new pull requests by default. Note that default tasks are not created for pull requests based on release branches.

Like owencail likes this
1 vote
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 30, 2022 • edited Aug 31, 2022

If you do not mind a separate app, you can achieve this with our Checklist Buddy for Bitbucket Cloud.


It uses configuration as code for the definition of the default task rules, which allows reviewing changes by peers, tracking changes over time and all the other benefits Git has over UI-based configurations.


To restrict default tasks for certain branches, you can use this syntax:

--target release/* +task+ Release notes ready?

Besides the configuration of the source/target branch, it is also able to create content-dependent default tasks, e.g.


--files /app/*.jsx +task+ UI changes visually inspected on IE/Edge

creates the default task only if the PR contains any React JSX files.
For more information, please check the app documentation.

Thanks very much. I'll leave the question open, in case Atlassian wants to comment about their roadmap. We'll take a look at your app for sure.

Has anyone been able to figure out why Atlassian didn't enable tasks on release branch?  I have been searching and I can't find an answer.  I have a use case where this is needed and there are no options to automatically add it besides 3rd party.

Like owencail likes this

@Joseph Duncan Currently, I see tasks appearing on release branches just fine.

However, for a brief period in time, tasks failed to appear for me as well. It seemed (but I know how stupid it sounds and I doubt myself as I write this even though I am sure this is exactly what I did because I did it multiple times) that if I removed the word "release" from the PR title before pressing Create, that the tasks did appear. I.e. I changed the title to something neutral like "PR". Then, I pressed Create. The PR was created with release tasks. Then, I manually edited the PR title.

Anyway, if tasks on release branches don't appear, there is some specific condition that is causing it, because currently, for all our release branches, the tasks do appear.

Hope it helps somewhat.

@dianakoenraadt - on my PR in bb cloud, I have a PR from feature to release branch, the PR is named the jira task only but the task does not create.  There must be something different in the way you have your release branches configured.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events