Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to display None on issue view

I found something today, seems amazing genius and I wonder if others here will agree. There aren't many people on this planet that will appreciate this...

I just noticed someone -- long gone from the company now -- had added a snippet to our Announcement Banner:

#customfield_11402 option:nth-child(1), #customfield_11903 option:nth-child(1), #customfield_10410 option:nth-child(1), #customfield_11905 option:nth-child(1) {
display:none;
}

Looking further, these are single-line select lists and not required on any screens. This hack hides None/null, you know, the value that's offered if the field isn't required. In my short time as Jira admin I've had to explain more than once to my users that if we don't want None/null as a valid option then the field must be required. Right? But this is rather elegant! No weird red required asterisk where it doesn't seem to belong!

OK here's the crazy part: along with the other choices, the first in the list of values for these is... "None". For these fields the word "None" is an actual choice and not null. The users are effectively required to pick a value, or skip over it and leave it set it to None.

The impact? Even when "None" is the choice the field will be displayed on the view screen!

tl;dr: a simple CSS hack can trick Jira into displaying a value that should mean "null/no value"

1 comment

You do know this breaks your searching?  "<field> is empty" will give the wrong answer because the fields are not empty when you force "none" into them.

Agreed! Empty, they shall never be. But it seems to search OK

  • field != "None"
  • field = "None"

These return what I would expect (once I got my mind around what had been done here)

But your searches are still wrong.  This is not a good thing to do to your people.

You really should remove this.   It's exactly the sort of thing I spend so much time removing from broken Jira systems.

And "field = 'None'" is wrong as well, because it's not true.  You're actually asking "field is something but is showing none", and that's broken.

And when you say "how many issues have a value in that field",  the answer is technically correct, but wrong as far as your humans are concerned.

You really need to get rid of this broken "trick"

I hear you Nic and I hope my tone wasn't "we should all do something like this"... I meant to be more, "who knew this crazy could work".

The worst part for me is we nothing to refer to for when/why it was implemented. I never touch the announcement banner without including <!-- see TIX-123 --> or something. Will be an uphill battle to revisit now.

It worried me that you thought it was "genius" to put in such a terribly broken botch like this!

Yeah I did say that didn't I... more like, technically brilliant if short sighted :)

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Marketplace Apps & Integrations

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

51 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you