Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Check Box Contents in Email

Neil Kugelman
Contributor
July 27, 2022

I’ve setup an automation to send an email when an issue is created.

I’m having trouble displaying the contents of a custom ‘Check Box’ field named “Menu Item”.

The contents of this field could contain one item, multiple items or no items.

The resulting emails are not displaying any thing for this field regardless of the contents.

How can I have it display all items in the field?

Thanks  

1 answer

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
July 27, 2022

Can you share your automation rule?

Neil Kugelman
Contributor
July 28, 2022

Sure. See below.

Thanks

Neil

 

 

{"cloud":true,"rules":[{"id":7087502,"clientKey":"697a1bf5-15bf-3470-be1d-5065f59941a0","name":"Notify Neil Email","state":"ENABLED","description":null,"authorAccountId":"557058:5cdc2c3b-5b6f-4716-a660-a3ad8c1eff55","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1658937564429,"updated":1658960023281,"trigger":{"id":"137316481","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:created","value":{"eventKey":"jira:issue_created","issueEvent":"issue_created"},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"137316482","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":3,"type":"jira.issue.outgoing.email","value":{"fromName":"","replyTo":"","to":[{"type":"SMART","value":"{{issue.Email}}"}],"cc":[],"bcc":[],"subject":"Support Ticket {{issue.key}} {{issue.summary}} Received","body":"Hi {{issue.Requestor}}:\n\nWe have received your support request: {{issue.key}}\n{{issue.summary}}\n\nThe issue details appear below.\n\nYours truly,\n\nRefinement Services Support\n\n\nIssue Details:\nDate Created: {{issue.created}}\nIssue Type: {{issue.Type}}\nMenu Item(s): {{#issue.Menu Item}}{{Menu Item}}{{issue.Menu Item}} {{/}}\nPriority: {{issue.Priority}}\nQuick Fix?: {{issue.Quick Fix}}\nAttachment: {{issue.Quick Fix}}\nAttachments: \nDescription: {{issue.Description}}\n","mimeType":"text/html","convertLineBreaks":true},"children":[],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[{"projectId":"10001","projectTypeKey":"business"}],"labels":[],"tags":[{"id":7384901,"tagType":"IS_RULE_UPDATED","tagValue":"true"}],"ruleScope":{"resources":["ari:cloud:jira:3cced499-2b47-497b-9e2c-61b9fa550073:project/10001"]},"writeAccessType":"UNRESTRICTED","collaborators":[]}]}

Neil Kugelman
Contributor
July 29, 2022

Jack

Do you have a solution?

Neil

Jack Brickey
Community Champion
July 29, 2022

Hi @Neil Kugelman ,

sorry I have been otherwise occupied. I wasn't expecting automation in the form shown here. I assumed you were simply using the built in automation components. I assume it falls short for you? In the meantime I will see if I can create a basic rule and test. I will get back with my results.

Jack Brickey
Community Champion
July 29, 2022

Hi Neil,

I was able to get the checkbox to display using The below rule. I was able to add the checkbox into a comment as well as into the body of an email.

74FBBD4B-7C61-4BF3-B400-EEE6816F2163.jpeg

Neil Kugelman
Contributor
July 30, 2022

Jack

Thanks for the response. I'm away from my computer till Monday AM. I'll check it out and let you know.

Thanks again

Neil

Neil Kugelman
Contributor
August 1, 2022

Jack

It still doesn't seem to be working for me. Perhaps I didn't explain it correctly.

Since the field "menu item" can have multiple responses (selected from a list) I can't get this field to display in an email.

I've attached some screen shots to better explain.

Thanks

Neil

Screenshot of Support Ticket DSN-244 Testing Menu Item Received - neilk@refinementservices.com - Refinement Services LLC Mail.jpgScreenshot of Form submission - Development and Support - Jira.jpgScreenshot of Development and Support - Details - Jira (1).jpg

Jack Brickey
Community Champion
August 1, 2022

I just re-tested my above rule with multiple values in the checkbox field and the email successfully illustrated the proper info...


9A4D92F8-A69E-4919-AE7B-8A54F364B486.jpeg

Here is my issue with checkbox option shown...

374AC5B8-95C5-4D14-877C-4FD37013977F.jpeg

Jack Brickey
Community Champion
August 1, 2022

Just for grins, delete everything else in the body of the email rule except for your checkbox entry.

Jack Brickey
Community Champion
August 1, 2022

The other thing you can do is to replace this {{issue.Menu Items}} with  {{issue.customfield_xxxxx}} where xxxxx is the custom field ID. This ID number can be acquired by going to settings – issues – custom fields, find your field click on the… And select edit details. At the very end of the URL for that page will be your ID number.

Neil Kugelman
Contributor
August 1, 2022

Jack

All working fine now. It seems the problem was with the custom field.

I deleted "Menu Item" and created a new field and it works fine. FYI, your last instructions, directing me to the custom fields in settings was where I saw that there was something wrong with that field.

Thanks for your help!

Neil 

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events