Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardinius/773063 to your computer and use it in GitHub Desktop.
Save leonardinius/773063 to your computer and use it in GitHub Desktop.
<web-item key="xxx.yyy.issue-operation" i18n-name-key="xxx.yyy.operation"
name="XYZ Operation"
section="operations-top-level" weight="100">
<!--section="operations-top-level" will make it appear on the top level, instead of other actions-->
<!--weight="100" relative weight: wil make it appear in the end of the list-->
<label key="xxx.yyy.operation"/> <!-- i18n resource label text key -->
<tooltip key="xxx.yyy.tooltip"/> <!-- i18n resource tooltip text key -->
<link linkId="xxx.yyy.myId"> <!-- link value, id will be needed later on -->
/secure/MyWebAction!default.jspa?atl_token=${atl_token}&amp;id=${issue.id}
</link>
<conditions type="AND">
<condition class="xxx.yyy.MySuperCondition"/>
<condition class="com.atlassian.jira.plugin.webfragment.conditions.IsIssueEditableCondition"/>
<!-- only in view mode -->
<condition class="com.atlassian.jira.plugin.webfragment.conditions.ContextContainsCondition"
invert="false">
<param name="context-key">display-context</param>
<param name="context-value">view-issue</param>
</condition>
</conditions>
</web-item>
<web-item key="xxx.yyy.issue-operation" i18n-name-key="xxx.yyy.operation"
name="XYZ Operation"
section="operations-top-level" weight="100">
<!--section="operations-top-level" will make it appear on the top level, instead of other actions-->
<!--weight="100" relative weight: wil make it appear in the end of the list-->
<label key="xxx.yyy.operation"/> <!-- i18n resource label text key -->
<tooltip key="xxx.yyy.tooltip"/> <!-- i18n resource tooltip text key -->
<link linkId="xxx.yyy.myId"> <!-- link value, id will be needed later on -->
/secure/MyWebAction!default.jspa?atl_token=${atl_token}&amp;id=${issue.id}
</link>
<conditions type="AND">
<condition class="xxx.yyy.MySuperCondition"/>
<condition class="com.atlassian.jira.plugin.webfragment.conditions.IsIssueEditableCondition"/>
<!-- only in view mode -->
<condition class="com.atlassian.jira.plugin.webfragment.conditions.ContextContainsCondition"
invert="false">
<param name="context-key">display-context</param>
<param name="context-value">view-issue</param>
</condition>
</conditions>
</web-item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment