Skip to content

Instantly share code, notes, and snippets.

@mrueegg
Last active March 9, 2017 17:49
Show Gist options
  • Save mrueegg/063c82d926f1136c40e1aa095015cb71 to your computer and use it in GitHub Desktop.
Save mrueegg/063c82d926f1136c40e1aa095015cb71 to your computer and use it in GitHub Desktop.
Bitbucket Server resource for resolving all open tasks in a pull request
<client-resource key="bitbucket-close-open-tasks-resources" application="bitbucket">
<resource type="download" name="task-resolver.js" location="/js/task-resolver.js"/>
<resource type="download" name="bitbucket.js" location="/js/bitbucket.js"/>
<dependency>com.atlassian.auiplugin:ajs</dependency>
<dependency>com.atlassian.bitbucket.server.bitbucket-web-api:amd</dependency>
<dependency>com.atlassian.bitbucket.server.bitbucket-web-api:aui</dependency>
<dependency>com.atlassian.bitbucket.server.bitbucket-web-api:jquery</dependency>
<dependency>com.atlassian.auiplugin:aui-flag</dependency>
<context>bitbucket.page.pullRequest.view</context>
</client-resource>
<web-item key="bitbucket-close-open-tasks-button" weight="90"
section="bitbucket.pull-request.toolbar.actions" application="bitbucket">
<condition class="ch.mibex.crossproduct.bitbucket.HasOpenTasksCondition" />
<label key="open.tasks.resolve.label"/>
<tooltip key="open.tasks.resolve.tooltip"/>
<styleClass>resolve-open-tasks</styleClass>
</web-item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment