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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Default tasks should apply to all branches. I don't understand the logic behind carving out an exemption for release branches only, and not allowing the users to disable this exemption?
Maybe create a feature that allows the users to create default tasks that apply to search terms, like the branch restrictions models?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@dianalaa - 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this thread open or closed? Can you help in locating the status of this issue. I am facing the similar challenges with Bitbucket right now and unable to add task for PR in release/ branches.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.