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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

217 views 1 3
Join discussion

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