Prachi Ojha
Prachi Ojha

Reputation: 11

Custom Rule in Azure Devops for copying values

  1. I have designed a field named as 'Goal' as a Multi-Line field Goal

  2. I have designed a field named as 'Short Goal' as a Single-Line text field Short Goal

I want to copy values from field 'Goal' to 'Short Goal'.

For this, I have created a Custom Rule as : Custom Rule for Goal

But upon saving, I am getting an Error as : A value of type Html is not valid for field Short Goal.

Can anyone please suggest a solution for this.

Upvotes: 1

Views: 391

Answers (1)

Kim Xu-MSFT
Kim Xu-MSFT

Reputation: 2206

I have followed your steps to configure these two fields and faced the same error message as yours.

It is caused by the field type. Text(multiple lines) is Html format, Text(single line) is string.

enter image description here

When I create the rule to copy the value from Multi to Multi and from Single to Single, they both work well.

enter image description here

enter image description here

Upvotes: 1

Related Questions