Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboard Calendar Widget - Show more than 1 month's events

Matt Burgess
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2021

Hi,


I'm using the Calendar widget on a dashboard and showing all tasks from a project. I am showing by due date - the intent is to highlight days when tasks are due.

However the calendar only shows events for the current month and not those for the upcoming/previous month - even though the calendar grid shows the days of those months.

In this picture, the calendar should be showing an issue being due on April 1st. If I change the calendar to the next month, I can see the events due in April.

How can I have all events show on the widget? Is this a setting I've missed or a bug?

 

Thanks!

image.png

2 answers

0 votes
Thanos Batagiannis [Adaptavist]
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 Champions.
January 10, 2017

Hi Manju,

Answered to you in your original question. https://answers.atlassian.com/questions/45393907

Please create new threads only for different questions. 

0 votes
Vasiliy Zverev
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 Champions.
January 9, 2017

I refactored your code, tri it:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.IssueFactory
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.issue.customfields.option.Option
import com.atlassian.jira.issue.fields.CustomField

//Issue issue = issue
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

//'Impacted sub-systems' is a multiple choice select list custom field
CustomField componentCF = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Impacted sub-systems")
def selectedComponents = issue.getCustomFieldValue(componentCF)

//'Subsystem' is a Single choice select list custom field
CustomField subSystemCF = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Subsystem")

IssueManager issueManager = ComponentAccessor.getIssueManager()
IssueFactory issueFactory = ComponentAccessor.getIssueFactory()
selectedComponents?.each { Option it ->
    
    MutableIssue newIssue = issueFactory.cloneIssue(issue)

    newIssue.setCustomFieldValue(subSystemCF, it.value)

    Map<String,Object> newIssueParams = ["issue":newIssue] as Map<String,Object>

    issueManager.createIssueObject(currentUser, newIssueParams)
//issueManager.createIssueObject(currentUser, newIssue)
}
Vineela Durbha
Contributor
May 17, 2019

@Thanos Batagiannis [Adaptavist] 

I am able to clone issues as per the above code. But they are being with the created date of the parent issues. Is it the expected behavior?

Or is there anyway to change created date to current date?

Suggest an answer

Log in or Sign up to answer