The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How to set custom fields of type date and select list in groovy script via issueInputParameters

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events