Jira Automation JSON update date to now

Ivanna February 17, 2023

I have set a Automation when I change the field "剩餘點數" then the field "剩餘點數異動日" will update to current date. 

I couldn't find the "剩餘點數異動日" field in Edit issue,So I want to set JSON  to do this.

I have tried many times without success, could any one can help me to know where is the problem? thanks

p1.jpgp2.jpg

1 answer

1 accepted

1 vote
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

Ηι @Ivanna 

Without you providing us what you wrote on the JSON field on the automation, it's not possible. In addition we have to know what type of field you are trying to update. In this link https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/ you will find all the support on how to update fields using JSON.

Let me know if the above helps.

Ivanna February 17, 2023

Hi @Alex Koxaras _Relational_ ,

I updated the picture and the field I want to automaiton change is "Date Picker"

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

@Ivanna the date field should be available on the dropdown list! Did you try to search for it?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

@Ivanna in any case, try the following:

{
"fields": {
"customfield_10407": "{{now}}"
}
}
Like Rudy Holtkamp likes this
Ivanna February 17, 2023

Hi @Alex Koxaras _Relational_ ,

It worked!!!!!!

Thank you very much!!!

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

@Ivanna nice to know that!

Kindly mark my answer as accepted, in order to help others in the community with similar questions. Thank you!

Ivanna February 19, 2023

Hi @Alex Koxaras _Relational_ ,

Done,thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events