I have an automation that clones an issue in Jira software from a JSM issue.
Perhaps in a second automation triggered by the creation of the new issue (or even the original clone automation), I'd like to be able to copy Assignee to a custom field.
It doesn't appear to me that this is possible in a field copy edit component in an automation.
Hi @Phil Bustin
Are you trying to copy the assignee to a custom, user field, such as with {{issue.assignee.accountId}} ? What is not working as you expect?
Kind regards,
Bill
I see! I was trying to use the Copy function instead of the Set function. Question: Why use .accountId? Would just {{issue.assignee}} work, or if not, then {{issue.assignee.name}}?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In general, user fields are set with accountId for the user, and then Jira automagically figures out the rest. When using just {{issue.assignee}} I believe that will work in most cases because the default attribute is the accountId.
However...let's say you were doing an advanced branch on a set of users (like watchers). The entire user object is provided, allowing you to later reference accountId, displayName, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, none of the above worked, but I figured out I can't have an assignee for the first status anyway--so for this particular effort, it doesn't matter. Still I wonder why when I did provide an assignee, the other field wasn't copied from it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, I could create an automation for when the user provides a value for Assignee. So I'm interested again in making this work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Phil, I am puzzled why the copy would not work. Would you please post an image of your rule?
If your trigger is Issue Created, the cause could be that timing problem where the trigger fires faster than the data is available, leading to an empty field when the copy is attempted. The work-around for that is to add the Re-fetch Issue action immediately after the trigger.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved. Thanks for your help. What did work is a new rule triggered by adding a value to Assignee for all operations, and that is all I need for this function.
When I looked at one of the other automations, I found that I had forgotten to click Enter after entering the smart value, so that explains why that automation didn't work.
I then removed the edits from both of the two automations in which the edit wasn't working, since I now do not want to set the field in those automations. Since the new automation works, I'll just assume I needed a re-fetch in one, and that the other would have worked if I had actually placed smart values in its edit.
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.