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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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
TAGS
AUG Leaders

Atlassian Community Events