Checklist text - automation failed
Asked by Wojtek Szczerbinski:

Hi,  
I'm experiencing an issue with automation that I created. It was working just fine but due to some problems in our organization, all of the automation rules must have been restored and since then this automation doesn't work anymore.   

I created an automation rule which adds a checklist to a ticket.   

Here is the flow:  
When: value changes for Components   
Issue type equals: System Incident  
Components contains any of: Here is the value we use  
Then: edit issue fields - Checklist Text  

But when I trigger this be editing the Components field I get the following error:  

##### Action details: {#toc-hId--1533419936}

##### [Issue condition](https://snappygifts.atlassian.net/jira/servicedesk/projects/RS/settings/automate#/rule/14479501/311511884) {#toc-hId-954092897}

The following issues passed:  
RS-3786  

##### [Issue condition](https://snappygifts.atlassian.net/jira/servicedesk/projects/RS/settings/automate#/rule/14479501/311511885) {#toc-hId--853361566}

The following issues passed:  
RS-3786  

##### [Edit issue](https://snappygifts.atlassian.net/jira/servicedesk/projects/RS/settings/automate#/rule/14479501/311511886) {#toc-hId-1634151267}

Found multiple fields with the same name and type: .  
Checklist Text (com.atlassian.jira.plugin.system.customfieldtypes:textarea)  
No fields or field values to edit for issues (could be due to some field values not existing in a given project):  
RS-3786  

I checked in the custom fields and I see that we have 3 custom fields called Checklist Text, one of them contains the part (view-only) but in the description I can see: Do not delete. Custom field with Checklist content in text format. Automatically created and managed by Issue Checklist Free.  

Is it possible that this issue is caused by the fact that we have two Custom fields with the same name? ![2023-08-25_16h14_37.png](https://community.atlassian.com/t5/image/serverpage/image-id/277204i0C1904AB0B555DD0/image-size/large?v=v2&px=999 "2023-08-25_16h14_37.png")

Thank you  

<br />


Answers:
author: Wojtek Szczerbinski
body: Hi [@Wojciech Wardaszko _HeroCoders_](/t5/user/viewprofilepage/user-id/4928380)   

After I deleted the other custom field the automation shows no errors but for some reason after the automation is triggered it doesn't edit the Checklist Text field inside of the plugin.  

We are using the plugin called "Issue Checklist for Jira" and it works with a default template that I created but for some reason the automation doesn't affect it.   

What can we check?


author: Wojciech Wardaszko _HeroCoders_
body: Hi, [@Wojtek Szczerbinski](/t5/user/viewprofilepage/user-id/5186948)

You need to delete the one that has no information in Last used - you must have used another version of Issue Checklist in the past and that field is a leftover.

Once Checklist Text is no longer ambiguous, the automation will work as expected.

If you have any other questions or further trouble with automating Issue Checklist for Jira, feel free to ping me or reach out to our support team via our [service portal](https://herocoders.atlassian.net/servicedesk/customer/portals). We usually reply within 4 business hours.

Cheers!

comments: author: Wojtek Szczerbinski
body: That was it! I also noticed that I had to associate the custom field "Checklist text" with the proper project but now it works as expected.   
Thanks [@Wojciech Wardaszko _HeroCoders_](/t5/user/viewprofilepage/user-id/4928380)


author: Wojtek Szczerbinski
body: Ok so actually the automation itself works but the result I get it's not what is expected.  
After I associated the Checklist Text custom field with the screen in the project it showed up as a separate element in the ticket and that's not what I want.  

I want it to add the elements as elements in the checklist.  
Like here:  
<https://docs.herocoders.com/checklist/add-checklist-based-on-a-custom-field-value>  

It's set up exactly the same way but for some reason when I trigger the automation it doesn't show up.   

It's important to mention that I noticed that we are using the plugin called "Issue Checklist for Jira" so I assume there is no need to associate this custom field with any screens?   

But how I can make it to add a new checklist through an automation? It was working fine in the past.   
![2023-08-25_18h29_23.png](https://community.atlassian.com/t5/image/serverpage/image-id/277234i3D8B40FADD7737DF/image-size/large?v=v2&px=999 "2023-08-25_18h29_23.png")


author: Wojciech Wardaszko _HeroCoders_
body: Hi [@Wojtek Szczerbinski](/t5/user/viewprofilepage/user-id/5186948) ,

You are right - the Checklist Text field does not need to be on any screen to work as intended.

As for the automation not working, have you enabled the option to [Save local checklist items to Jira custom fields](https://docs.herocoders.com/checklist/configure-checklist-global-settings#ConfigureChecklistGlobalSettings-SavelocalchecklistitemstoJiracustomfieldsCustomFieldsSync)? If not, those fields are not linked to our servers at all, they just wait, empty.

Once you enable this option, wait for our syncer to save checklist data from our servers to your Jira's custom fields (usually about 24h tops) and the automation should work without an issue.

You can refer to the current Checklists in automation with the {{issue.Checklist Text}} smart value, so you can add to what's already there if you need to, just put the smart value in a line above your new content in the Edit Issue action input field.

If you need any more help with that, please feel free to reach out to us (or me specifically) directly via [our service portal.](https://herocoders.atlassian.net/servicedesk/customer/portals)

Cheers!