Forums

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

How to include parent issue name/summary in Slack message using {{lookupIssues}}

Niccolo Ossude February 14, 2022

I've automated a Slack message every morning for urgent tasks due within a week.

I would like to know how to include the name/summary of the parent issue in this message (doesn't need a link), as it can be confusing to have only the sub-task summary without its parent. 

Here is the message:

Good morning <@xxxxxxxxxx>!
Here are your most urgent tasks over the next week, sorted by due date and priority smile

{{#lookupIssues}}
• <{{url}}| {{issue.parent.key}}> <{{url}}| {{issueType.name}}: {{summary}}> | Priority: *{{priority.name}}* | Due in: *{{duedate.diff(now).days.abs}} days*

{{/}}
_Please put a Due date if "Due in" field is blank._

If you need help with any task, check the "Other members assigned" field on the task to see who to ask.

I would appreciate any help with this! Thank you 

4 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2022

Hi @Niccolo Ossude 

When you are inside of the lookup issues iterator, just refer to the field name's smart value and not {{issue...}}  Then you would just need {{parent.summary}} inside the lookup loop.

Kind regards,
Bill

Niccolo Ossude February 15, 2022

Thanks @Bill Sheboy I removed the issue and it fixed the issue! 

Like Bill Sheboy likes this
1 vote
Nithaya
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2022

Hi @Niccolo Ossude ,

I'm Nithaya from the Automation team here at Atlassian.

Did you manage to make it work with {{issue.parent}} ? It should work with {{#lookupIssues}}.

If not, can you share any more detail or a screenshot about the automation rule you were wanting to create, to help us understand how we can support your use case?

Cheers,

Nithaya.

1 vote
Vishwas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2022

Hey @Niccolo Ossude 

Welcome to Atlassian Community !!

Is the parent issue the Epic Issue type ?

Did you try {{issue.parent.epic.summary}} 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.parent--

The above URL lists the available smart values for {{issue.parent}}

Hope this helps !!

 

Regards,

Vishwas

1 vote
Pramodh M
Community Champion
February 14, 2022

Hi @Niccolo Ossude 

Welcome to the Community!!

May I know if it's not working or are you looking at suggestions?

Let me know

Thanks,
Pramodh

Niccolo Ossude February 14, 2022

Thanks @Pramodh M and @Vishwas !

I've tried to use smart values for {{issue.parent}} from 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.parent--

but these aren't working, I believe these don't work when I use {{#lookupIssues}} ? This is the only explanation I have right now.

Also, the Slack message includes Tasks and sub-tasks, but my priority is to include the Task name for sub-tasks. Having the Epic name for the Tasks would be a bonus.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events