I would like to show issues with different background colors in filter result gadgets based on a custom field value. Example: Field "Escalated by customer" = yes => red background color for the issue.
Is there a way to do that?
Community moderators have prevented the ability to post new answers.
You may want to try these plugins (I don't have first-hand experience with any of these):
+ And you still have the option to implement this as a simple scripted field using the Script Runner plugin.
I created a scripted field but the filter result gadget doesn't diplay the HTML. It display OK in the issue screen though. Here is the code: import com.atlassian.core.util.DateUtils import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.fields.CustomField enableCache = {-> false} customField = componentManager.getCustomFieldManager().getCustomFieldObjectByName("Termino Plan Etapa Actual") Termino_Plan_Etapa_Actual = issue.getCustomFieldValue(customField) customField = componentManager.getCustomFieldManager().getCustomFieldObjectByName("Termino Real Etapa Actual") Termino_Real_Etapa_Actual = issue.getCustomFieldValue(customField) if (Termino_Plan_Etapa_Actual && !Termino_Real_Etapa_Actual) { Double timeDiff = Termino_Plan_Etapa_Actual.getTime() - System.currentTimeMillis() Double a = (timeDiff / (1000*60*60*24)) Integer dias = (int)(a.trunc() + 1) if (dias <= 0) { return "<div class='aui-lozenge aui-lozenge-error'>" + dias.toString() + " d </div>" } else { return "<div class='aui-lozenge aui-lozenge-success'>" + dias.toString() + " d </div>" } } return null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am very interested in learning more about your "scripted field", but I am a newbie to Confluence 5. Where does the "scripted field" go? I would like to learn more. Thank you!
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.