I’m copying Select List (single choice) and User Picker (single user) fields from one issue to another issue when the first issue is updated. I’m using the following JSON in automation’s additional fields box:
Select List example:
"Directorate": {
"value": "{{triggerIssue.fields.directorate.value}}",
"child": { "value" : "{{triggerIssue.fields.directorate.child.value}}"
}
},
User Picker example:
"Team Lead": { "id": "{{triggerIssue.Team Lead.accountId}}" },
These work fine when the triggerIssue’s field has a value other than None. But when the triggerIssue’s field is cleared using the GUI and sets to None, I get the error, “Option id 'null' is not valid (fieldname),”
How might I overcome this error?
Have you tried to use and If/Else structure to check the field for non-empty before the copy attempt?
Best regards,
Bill
Thanks @Bill Sheboy. I did some more digging based on your prompt and found this solution, provided by @Erik Buchholz . It helped me with both this and another problem (basically the same) that I was facing.
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.