Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can we display scripted field(date) in jira dashboard

Priti Sonar November 9, 2021

We have a scripted field  gives out the date as output , Now we want this scripted field to be displayed over Jira dashboard for calendar gadget , But the field is not visible  in the field dropdown . Help me out  what I can do to make it visible  in Jira dashboard

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2021

I'm not familiar with the calendar gadget and ultimately, the issue could be with that gadget specifically.

But usually, when I've had issues finding a field in a gadget was because the "searcher" was not set correctly.

So go to custom fields, find your script field in the list. Select Edit from the Action cog and change the search template to "Date Time Range picker".

Depending on what the gadget is designed to filter on, this might work.

Priti Sonar November 9, 2021

I already modified the Search Template based on gadget filter "Date Time Range Picker " I almost tried every searched filter , but of no use . I cannot see my scripted field in dashboard . Could you guide how scripted (date) field can be visible over any dashboard 

Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2021

This will depend on the design of the gadget.

I don't know which gadgets have the ability to select a custom date field. If you point me to a specific gadget and which add-on provides it, I can run some tests.

On a "Filter Results" gadget I have no problem selecting a scripted date field

Priti Sonar November 9, 2021

Can you please test a scripted (date) field to be visible on a jira dashboard particularly jira issues calendar gadget ( field- date  drop down) and check whether the scripted (date) field is visible in that drop down 

Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2021

Ok, I found and installed the plugin with that gadget.

This gadget doesn't support scriptrunner scripted field.

It would appear that the gadget calls it's own internal API to get the list of valid date fields: <your jira base url>/rest/calendar-plugin/1.0/calendar/htmlcalendar/config/datefields

Which returned just fields of type date. It probably filters custom fields based on the custom field type rather than filtering on search template.

There is nothing you can do with your field as currently designed. The only recourse is to make a request to the maker of the plugin.

But if you really need this functionality, you would have to use a normal date picker field and have a script (perhaps listener) that populates and updates that field as necessary.

Priti Sonar November 10, 2021

Thank you , for the quick response , will build a workaround 

Tenzing Doleck February 13, 2023

@Priti Sonar  may I ask what was the workaround?

TAGS
AUG Leaders

Atlassian Community Events