How to set custom fields of type date and select list in groovy script via issueInputParameters

Puján Z
Contributor
March 16, 2020

Hello community,

I am trying to create an issue with some prepopulated fields. Except the two rows regarding due date and calendar week the rest works. Calendar week is of type select list and due date is Date. Anyone knows what is the right way of setting these fields? Thanks in advance!

Cheers, pj

issueInputParameters.setProjectId(projectId)
.setIssueTypeId(issueTypeId)
.setSummary(getReportingSummary (reportTitlePrefix, currentMember))
.setReporterId(creatorUserName)
.setAssigneeId(currentMember.name)
.setDescription("Leistungsbereicht")
.setStatusId(openStatusId)
.addCustomFieldValue(responsibleCFID, currentMember.username)

//.setDueDate(new Timestamp(deadlineDate.getTime()).toString())

// .addCustomFieldValue(calendarWeekCFID, calendarWeek)

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events