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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,560,577
Community Members
 
Community Events
185
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
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 09, 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.

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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 09, 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

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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 09, 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.

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

@Priti Sonar  may I ask what was the workaround?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events