Hi
How do i set up a custom field called Type with drop-down options as Red, Green Yellow. if users select red, ticket shows "Type: Red" as text and background color of the text in red and if user selects option two green, then it should say green and text background as green?
I used this html , but dropdown shhows with colored background, but i need that value to displayed as needed. how can i achieve this?
<html>
<body><select>
<option value="1" style="background:red">Red</option>
<option value="2" style="background:yellow">Yellow</option>
<option value="3" style="background:green">Green</option>
</select>
</body>
</html>
Hi KRC,
Please see image attached. You need to set each option with a span and class set to aui-lozenge aui-lozenge-success/error/current, etc. Notice the single quotes and not double quotes.
For future reference, the Atlassian Design Guidelines (ADG) documentation is available at https://docs.atlassian.com/aui/latest/docs/lozenges.html
Thanks
Bhushan
Answered a similar question at https://community.atlassian.com/t5/JIRA-questions/Can-AUI-Lozenges-be-used-with-custom-fields-in-Jira/qaq-p/636865
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome @Rajat Sethi :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does this work for Cloud Versions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Obst no I have not tested this in Cloud and this may not work in Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For cloud users:
I know its not nice, and a workaround at best, but you CAN add emojis to customfield options. That way, theres at least SOME way to colorcode your values.
Im using this fella, and his red, yellow and whatnot colleagues:
Which then looks like this:
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.