Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

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

0 votes

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.

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 

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

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 

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.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

77 views 1 3
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