Hi,
A little background on my problem: I am a Structure user. When I try to group issues by Epic in the structure, sub-tasks are shown as "epic-less" (there is no more Epic link, and it is replaced by Parent Link, there can only be one parent which in case of my sub-tasks is a story). So I thought I could have an automation that would push Epic summary info the custom fields. And then another automation would copy values of this custom link from it's parent.
I created atuoation for pushing summary to custom field like this:
{ "update": { "RobotName": [ { "set": { "value": "{{issue.fields.Summary.value}}" } } ] } }
I tried also:
{ "update": { "RobotName": [ { "set": { "value": "{{issue.fields.Summary.value.asJsonString}}" } } ] } }
And each time logs return an error:
AAAA-123 (Operation value must be a string (customfield_10050))
What am I doing wrong here? Do you maybe have another idea to "overcome" lack of epic link in sub-tasks?
Maybe try "{{issue.summary}}" instead of "{{issue.fields.Summary.value.asJsonString}}" ?
ref: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
Hi,
I also tried with this one, but the result remains the same. Seems to me like it does not see Summary as a string?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Passing a list the way you are should work, but who knows?
Instead of;
{ "update": { "RobotName": [ { "set": { "value": "{{issue.fields.Summary.value.asJsonString}}" } } ] } }
Maybe try:
{ "update": { "RobotName": { "set": { "value": "{{issue.fields.Summary.value.asJsonString}}" } } } }
Note the removal of the [square brackets]; if it's being interpreted as a list instead of a string, that could explain the error, even though a list is supposed to be OK there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now it copies whole "code":
{ "update": { "RobotName": { "set": { "value": "{{issue.fields.Summary.value.asJsonString}}" } } } }
as a value in the fied
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.