Forums

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

Empty value returns with a successful "edit additional field" automation

Kemal Solmaz December 4, 2024

 

Following json is successfully perfomed with the automation rule that is running to update the value for the "Found in version" from the jira field "Affects versions". However "found in version" field still returns as empty value on the test issue. Can you please advise.

{ "fields": { "customfield_13981": { "value": { "id": "{{issue.customfield_11644}}" } } } }

Screenshot 2024-12-04 at 13.56.28.pngScreenshot 2024-12-04 at 13.57.29.pngScreenshot 2024-12-04 at 14.01.34.png

2 answers

2 accepted

1 vote
Answer accepted
Florian Bonniec
Community Champion
December 4, 2024

Hi @Kemal Solmaz 

 

If Found in version is a single select version picker. You need to push only 1 value to the field. But Affects Version is a multi version picker. You could use smart value on the edit field directly and not use the Advanced edit with json.

Smart value could be {{issue.versions.last}}

 

Regards

Kemal Solmaz December 6, 2024

That sorted the issue, thanks a lot.

0 votes
Answer accepted
Kai Becker
Community Champion
December 4, 2024

Hi @Kemal Solmaz 

welcome to the community and thank you for your question.

What type has the Found in version field?
Why not just simply copy the value from one field to the other using edit issue?

Kemal Solmaz December 4, 2024

Thank you @Kai Becker 

it's Version Picker (single version) type.
I tried first copy the value option, however that jira field (Affects versions) is not listing in the dropdown "Field to copy value from".

Screenshot 2024-12-04 at 14.17.20.png

Kai Becker
Community Champion
December 4, 2024

@Kemal Solmaz ok, so the problem here is, that only fields of the same type will be listed there. And as Affects versions is a multi select, it does not show up.

I would recommend the solution @Florian Bonniec provided:

  • Switch back to set instead of copy
  • use smart value from Affects versions (making sure there is only one value)
  • {{issue.Affects versions.last}}
Kemal Solmaz December 6, 2024

Exactly, after this change automation worked as expected. Thank you.

Suggest an answer

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

Atlassian Community Events