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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

282 views 0 12
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot