Automation issue
Asked by Jesus Octavio Gutierrez Villegas:

Hello everyone,   

First of all, thanks for reading.

I have this issue, this automation is working on other project with different screens, but when i tried to configure this to a new project, is not working... my objective is to copy the value of the native Jira "Team" field, from Parent to Child... this automation is working in another project but here is giving me this error:  

*Excluded your configured field from this action as it couldn't be found. It may have been deleted, or may need to be added to the project:*  
***Team***Here is my Rule:

![ges.png](https://community.atlassian.com/t5/image/serverpage/image-id/328659iFE05A32674F61400/image-size/large?v=v2&px=999 "ges.png")  
![teamid.png](https://community.atlassian.com/t5/image/serverpage/image-id/328660i1839CD3C6EE7397E/image-size/large?v=v2&px=999 "teamid.png")


Answers:
author: Trudy Claspill
body: Hello [@Jesus Octavio Gutierrez Villegas](/t5/user/viewprofilepage/user-id/5116855)

Have you added the Team field to the project and to the screens for the issues in the project?

Can you show us the full Audit Log output for the rule execution?

comments: author: Jesus Octavio Gutierrez Villegas
body: Hello, thanks for your answer.  

Yes, the Team field is on both screens, for childs and parent... its present on their Edit Screen.  
Here is the full Audit Log:  
![auditlog.png](https://community.atlassian.com/t5/image/serverpage/image-id/329240i28DC400E42C71B46/image-size/large?v=v2&px=999 "auditlog.png")


author: Jesus Octavio Gutierrez Villegas
body: Team is on these screens:  
![screens.png](https://community.atlassian.com/t5/image/serverpage/image-id/329241iF10ADB398BB239AE/image-size/large?v=v2&px=999 "screens.png")  

<br />

Parent:  

![parent.png](https://community.atlassian.com/t5/image/serverpage/image-id/329242i81C9E0C07F0FEA1C/image-size/large?v=v2&px=999 "parent.png")  

<br />

Child:  
![child.png](https://community.atlassian.com/t5/image/serverpage/image-id/329245i36F399C3AC4788C6/image-size/large?v=v2&px=999 "child.png")


author: Trudy Claspill
body: It is possible that there is more than one field named "Team" in your system.

In your JSON you are trying to update field customfield_10104. Let us make sure that is the correct field ID.

Use the guidance in the following document to output all the field names associated with one of the issues you've shown.

<https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>

Search the output for Team. You should find an entry for it that is preceded by its custom field id; i.e.

"Severity",++"customfield_10001":"Team",++"customfield_10002"


author: Jesus Octavio Gutierrez Villegas
body: Hi [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)   
Thanks for your answer.  

I verified and its the correct ID. I even have the same automation for other projects and its working... same field ID and the Team Field is present on the screens as well.  
![id.png](https://community.atlassian.com/t5/image/serverpage/image-id/329496i29937FB33572456A/image-size/large?v=v2&px=999 "id.png")


author: Trudy Claspill
body: I was running through attempting to recreate this rule in my own system and I noticed something I did not notice previously.

Within the branch you have a Condition that the Team field is not empty, and that is actually the step that is failing.

In my environment in the Issue Fields Condition the built-in "Team" field is not available for selection. I think that the "Team" field you have selected in the Condition is not the built-in Team field that has the field type of "Team Picker".

![Screenshot 2024-06-13 at 9.46.47?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/329838iCE6B28A6F4495916/image-size/large?v=v2&px=999 "Screenshot 2024-06-13 at 9.46.47?PM.png")

Can you check your Custom Fields list to see if there is more than one field named "Team"?


author: Jesus Octavio Gutierrez Villegas
body: you were absolutely right! I dont know why the Field Condition is not setting the right field, I changed it to a JQL condition and it worked!

Result:  

![image (18).png](https://community.atlassian.com/t5/image/serverpage/image-id/330191iB9004D9F0CF2B915/image-size/large?v=v2&px=999 "image (18).png")  
Thanks a lot!


Tags: cloud

jira-cloud