Is there a way of setting preferences for how Attachments are sorted/displayed in Issue Types?
For example, Sort By Date, Descending and List
If I log off Jira, these settings are lost and revert back to the default which is Sort By Name, Ascending but List remains
We are on Jira v7.3.2
Hi Rob,
There is not currently a way to do this natively in Jira server. I did find a feature request for this over in JRASERVER-67855 I would recommend voting on this issue, and maybe watching it for updates to this.
Interestingly though, that request ticket does have a work-around here that might be helpful. From that page:
Workaround:
This is an unsupported, and hacky workaround but hopefully it helps some people. You can use the following code in your announcement banner:
<script>var direction = "asc"; //Other option is "desc" var sortBy = "dateTime"; //Other option is "fileName" var origUrl = window.location.href; var patt = /browse\/[A-Z][A-Z]+-[0-9]+/; var key = new RegExp("[A-Z][A-Z]+-[0-9]+"); var sort = "?attachmentSortBy="+sortBy+"&attachmentOrder="+direction+"#attachmentmodule"; if(patt.test(origUrl) && !JSON.parse(sessionStorage.getItem('hasReloaded' + key))){ location.assign(origUrl + sort); sessionStorage.setItem('hasReloaded' + key, 'true'); } else { sessionStorage.setItem('hasReloaded' + key, 'false'); }</script>This will automatically switch to sorting by Date Ascending. You can tweak it to suit your needs.
This will only work for JIRA server installations. JIRA Cloud does not support inserting custom code into the announcement banner.
I found that work-around does appear to work on my Jira 8.0.2 install as well, so I would suspect this could help in your 7.3.2 version as well.
Cheers,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.