Forums

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

Connect task IDs with tasks on page within Automation

David Corlette
Contributor
January 14, 2025

I am working on an Automation to iterate through a list of items on a page and generate Jira issues for each item. Since support for iterating through - well, anything - on a page is minimal, my current solution is to use the FOR EACH Task branch, and using Tasks to "check off" items that should be created (users are presented with a template list are check off the ones they need).

FOR EACH Task branch is pretty cool, although AFAICT it can't be limited easily to the current page, but I am having a problem where the {{task.id}} elements that come back aren't represented in the page body that I can see. Whether I use {{{page.body}} or {{page.body.storage}, if I search through the text returned all the IDs appear to be localized (i.e. they start at 1 and go up from there) whereas the {{task.id}}s seem to be global - the tasks on my page range from 5474 up to 5521.

I need to find text in the same table row as input to the Jira issue creation, I was planning to use substringBetween for that with the task ID as part of the selector text, but ... can't find the task IDs in the page representations I can see.

Is there any way to get Confluence to give me the page body with the actual {{task.id}}s?

1 answer

0 votes
Tomislav Tobijas
Community Champion
September 10, 2025

Hey @David Corlette ,

Have you managed to sort this out? Or find some kind of workaround?

I've stumbled on this as well... What if you would use {{task.contentId}} smart value to get ID of the page/content where the task is located? 🤔

As you say, the automation branch might be the only solution here, but it's not ideal.

Cheers,
Tobi 

Suggest an answer

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

Atlassian Community Events