Forums

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

Assign duedate value to Label using automation

Vinutha GR December 13, 2023

When an issue is transitioned to Done status. 

Then Edit Label field 

I am trying to set the due date as {{issue.duedate}}

Its throwing an error as below

Additional fields contains invalid field(s) in 'update' or 'fields' section : Custom Field Name

2 answers

0 votes
Vinutha GR December 13, 2023

 {

"fields":{

"customfield_10023":{"value":"test"},

"lables":{{issue.duedate}}

}

}

 

Even the customfield is giving an error saying the it shoudl be string

0 votes
Fazila Ashraf
Community Champion
December 13, 2023

Hi @Vinutha GR 

Can you share the json part where you set this?

Vinutha GR December 13, 2023

Not sure what you are asking for. 

Under automation after when 

in Then Edit issues and under additional fields i have the above snippet.

Bill Sheboy
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.
December 13, 2023

Hi @Vinutha GR 

Adding to the answer from @Fazila Ashraf 

Your rule has both a typo in the field name and the incorrect syntax to add a label with JSON.  Please look here to learn how to add a label with JSON:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Labels

Kind regards,
Bill

Like Fazila Ashraf likes this
Vinutha GR December 13, 2023

Thanks Bill, I was able to resolve this.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events