take Issue fields yo word documents

I added nwe issue field to jira issues. How can i take that newly added field to word document view? Please smone help me

3 answers

0 vote

You don't need to do anything if you're using the standard custom fields, or, in fact, most other custom fields. They display in Word automatically - if you can see them in the standard issue view, then you should get them in the export as well.

Could you tell us what fields are not appearing - specifically, what type are they? Maybe show us the data you get in the issue view and what appears in the export?

We need to change the appearance of the word doc. format. So I changed all the source codes in vm file and changed it according to our preference. Now I added a new field called "topic" which is belongs to text field. Bt I adjested the codings only else part is working always.

The coding is shown here.....

#if (($fieldVisibility.isFieldHidden($issue.project.getLong('id'), 'topic', $issue.issueTypeObject.id) == false) && ($issue.topicObject))

#if ($issue.TopicObject)

<b>$i18n.getText('issue.field.topic'):</b>

#else

$textutils.htmlEncode($issue.topicObject.nameTranslation, false)

#end

We do not knw whether the way we adjusted the coding is correct... Could u plz adjust it if u knw....

Thank u very much....... :)

Sorry this is the coding we typed.............

#if (($fieldVisibility.isFieldHidden($issue.project.getLong('id'), 'topic', $issue.issueTypeObject.id) == false) && ($issue.topicObject))

#if ($issue.topicObject)

<b>$i18n.getText('issue.field.topic'):</b>

$textutils.htmlEncode($issue.topicObject.nameTranslation, false)

#else

$i18n.getText('unknown')

#end

#end

Please reply me soon................

Mmm, that's nothing like what you originally asked.

First, can you confirm that the original code worked before you starting amending it? The Word export stuff you had before you started amending the template will have displayed the data you are looking for.

Secondly, you should look to reuse the code that works there as part of your changes.

Finally, have a look through https://confluence.atlassian.com/display/JIRAKB/Customise+Word+Export+Template+for+JIRA as that covers custom fields

0 vote

You don't need to do anything if you're using the standard custom fields, or, in fact, most other custom fields. They display in Word automatically - if you can see them in the standard issue view, then you should get them in the export as well.

Could you tell us what fields are not appearing - specifically, what type are they? Maybe show us the data you get in the issue view and what appears in the export?

An easier way to export any JIRA data to Word is through a plugin such as Intelligent Reports. It allows you to design your template in word, then specify which data goes where with no programming required. Furthermore as it is a plugin you do not need to modify you JIRA installation, and thus have less headaches when upgrading.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

785 views 2 19
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