Hi Colleagues.
Please help me with this case.
I have automation, which opens sub-task. In the main ticket I have Element Connect field, which I want to copy in the sub-task via Additional fields JSON, but I can't.
Kindly ask you to help with the JSON syntax.
Thanks in advance.
Hello @Gor Greyan
I am part of the Elements Connect support team.
Where is the Automation rule triggered, in the sub-task or in its parent? Can you please share a screenshot to show us how your automation rule is configured?
Kind regards,
Simon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dear @Simon Laffont ,
Automation is triggered when the issue goes to Recruitment status, after that sub-task is created with this automation. I want to copy the Element Connect field from the Recruitment task into the created sub-task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gor Greyan
Alright, thank you.
I think @Zuri Suwru's answer was good, but you should use "triggerIssue" instead of "parentIssue", like this:
{
"fields": {
"customfield_20137": {{triggerIssue.customfield_20137.asJsonStringArray}}
}
}
Can you please try it and let me know if it works?
If the problem persists, please tell me the type of the connect field you are using (Live Text, Live User, Snapshot Text, etc...) and also if it's single or multi-value.
Kind regards,
Simon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome.
Have a nice day. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there,
Make sure to copy the custom field's value "asJsonStringArray".
"customfield_12345" : {{ issue.customfield_12345.asJsonStringArray }}
I would also suggest double checking whether the custom field is properly configured for your sub-tasks or not.
Hope this helps,
Zuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Zuri Suwru ,
Tried this, but got the following error.
Error while parsing additional fields. Not valid JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pardon me, I though you were interested in the syntax for the specific field in question. I did not think you need a complete JSON code.
Can you try it like this?
{
"fields": {
"customfield_20137": "{{parentIssue.customfield_20137.asJsonStringArray}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.