• Community
  • Products
  • Jira
  • Questions
  • Is it possible to avoid the selection of a customfield as a column of a xml export in the issue navigator section?

Is it possible to avoid the selection of a customfield as a column of a xml export in the issue navigator section?

Hi there,

is there any way to avoid the selection of a customfield as a column of a xml export in the issue navigator section?

We have developed a customfield that loads lots of options and it takes a lot of time when users use the xml export option in the issue navigator. We want to remove that cf from the list of custom fields that users can select to export.

3 answers

1 accepted

Accepted Answer
0 votes
Hi JPR,
a provisional solution, could be to include a script in the announcement banner to remove the select option corresponding to that customfield.
Regards!

That's it!

Maybe is not the most elegant solution but it works. I have added the following script in the banner and now the option is not selectable.

<script>
AJS.$(document).ready(function(){
AJS.$("#issue-nav-add-columns-column-select").find('[value="customfield_13502"]').remove();
});
</script>

Moreover, I noticed that it is also necesary to delete all rows at columnlayoutitem where FIELDIDENTIFIER='customfield_13502' and restart Jira to avoid the execution of old stored queries containing that customfield as a column.

Thanks a lot LEP!

0 votes

Not by default no, you could create a plugin to do this for you, because the query can be restricted, so something like https://jdog.jira-dev.com/sr/jira.issueviews:searchrequest-xml/65261/SearchRequest-65261.xml?tempMax=1000&field=key&field=summarywill return the only the key and summary fields.

Thanks for the answer, could you please tell me more about which kind of plugin are you talking about?

Thanks

Other option is setting my customfield as non Navigable and maybe it will not appear in the list. Is there any way?

I was talking about a full blown web-item where you could then offer config options, but Luis answer works pretty well. Just one thing to bear in mind though is that this removes the value from the issue navigator as well, so if you want it in the issue nav and to be 'deselected' for export then you need to write a plugin.

Thanks for the answer, could you please tell me more about which kind of plugin are you talking about?

Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 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...

26,783 views 2 7
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