How to update a custom date field using CLI?

Daisy Tam February 13, 2015

I tried to use the CLI to update a custom date field. It reports success but field is not updated. I suspect my date format is wrong. Anyone has a working example.

1 answer

1 accepted

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
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 Leaders.
February 13, 2015
  1. The field must be available for update on the edit screen for the issue. JIRA ignores updates for fields not available from the UI.
  2. You will be given an invalid date format error if the date entered does not match the format expected by JIRA
  3. Example: 

    --action setFieldValue --field custom-date --value 2/Feb/15 --issue XXX-11

 

Daisy Tam February 14, 2015

I made the field available for edit in UI. Then field update works as expected. Thanks Bob for the quick update.

Bob Swift OSS (Bob Swift Atlassian Apps)
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 Leaders.
February 14, 2015

:)

Suggest an answer

Log in or Sign up to answer