• 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

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 vote

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
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 Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

84 views 0 5
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