Single issue view: displaying based on the issue type

Hi guys.

I'm migrating old plugins 3.X to the version 7.2 of Jira. In particular, I have one plugin that is a menu entry (previously named as issue operation) and this action execute a single-issue-view, creating a Word Document template specific for an IssueType.

Reading, about that, issue operation was deprecated. Now is used Web Item Module. Until here, everything is ok. But, after creating the single-issue-view in the atlassian-plugin.xml, a new option in Export  button (Issue detail view) is displayed. I have two questions here: first, how can I display a single-issue-view in another button/section (I already try section and doesn't work); the second is, how can I enable/disable the option based on the issue type ( condition tag is not working too).

<single-issue-view key="issue-incident-word" i18n-name-key="issue-incident-word.name" name="Incident Report" class="com.bcompany.trk.jira.issue.views.IssueIncidentWordView" section="incident-report-section"
state="enabled" fileExtension="doc" contentType="application/vnd.ms-word">
<resource type="velocity" name="view" location="templates/incident-word/single-word-incident-report.vm" />
<resource type="velocity" name="style" location="templates/incident-word/single-word-incident-report-css.vm" />
<resource type="velocity" name="header" location="templates/incident-word/single-word-incident-report-header.vm" />
<resource type="velocity" name="footer" location="templates/incident-word/single-word-incident-report-footer.vm" />
<!-- <resource type="i18n" name="i18n" location="com.atlassian.jira.plugin.issueview.issueview" /> -->

<condition class="com.bcompany.trk.jira.issue.condition.IncidentReportCondition"/>

<order>1000</order>
</single-issue-view>

thanks for any help.

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

89 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you