we want to display a traffic light in a column on an IF condition. The three traffic lights (red, green, yellow) are located as an jpg image on a public Confluence page.
Example of a condition for a traffic light:
IF(itemtype = 'folder' and search("Error (New)"; summary) and issue = 0;
Link to the corresponding traffic light:
https://confluence.example.com/download/attachments/125151914/trafficrot.jpg?api=v2
or
https://confluence.example.com/download/attachments/125151914/trafficrot.jpg
How do I make it show the image and not the link to the image? Thanks.
I copied your script exactly into my environment and only changed the name of the 2 fields to use 2 of my date fields. It works just fine.
That error seems to imply that one of the 2 custom fields is not actually a "date picker" or "date time picker" field, but instead, a free text field populated with a text rendering of the date value.
If those fields are indeed text fields, then you need to add some code to parse that text into a date based on the localization used to generate the date string
Using a "Date picker" worked, but unfortunately, the two Fields are custom "Date Time" Fields and the code is not working.
These two fields are custom "Date Time" fields.
Start date of a Sprint
End date of a Sprint
Would it just be easier to get the Sprint start/end right in the cose instead of trying to get a custom field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are those two fields custom scripted fields?
If so, just change the "searcher" for those custom fields to "Date Time Range Picker"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They are custom scripted fields, but there is no option to change the "searcher". Am I missing something? This is for a Server instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to do this from the Custom Field page in Jira. There is a shortcut from the scripted field list screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I've found it and changed them. But it's still giving me the error...
I appreciate your help so far! This has been a very tough one to crack for me.
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.