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!
Hi Manju,
Answered to you in your original question. https://answers.atlassian.com/questions/45393907
Please create new threads only for different questions.
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)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
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.