Forums

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

Custom DatePicker Field value not displaying updated value

Pooja Sathyaraj July 23, 2024

I am updating a datepicker field of the child issues of an epic according to the Epic custom field.

The value gets updated, but it does not display in the custom date field in the issue.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Pooja Sathyaraj July 28, 2024

This is my code

 

def msaEndDateCheck =  getFieldByName("MSA End Date").getValue()  as Date

 

childIssue.getCustomFieldValue("MSA End Date").setDate(msaEndDateCheck.getDate())
        childIssue.getCustomFieldValue("MSA End Date").setMonth(msaEndDateCheck.getMonth())
        childIssue.getCustomFieldValue("MSA End Date").setYear(msaEndDateCheck.getYear())
        childIssue.getCustomFieldValue("MSA End Date").setHours(msaEndDateCheck.getHours())
        childIssue.getCustomFieldValue("MSA End Date").setMinutes(msaEndDateCheck.getMinutes())
        childIssue.getCustomFieldValue("MSA End Date").setSeconds(msaEndDateCheck.getSeconds())
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events