I'm working on creating a manual trigger for Epic Tickets to send out an a web request to slack where it would print all child tickets related to that epic and one customfield associated to each child ticket. Here is what i have currently.
Web Request (POST)
{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "{{#lookupIssues.summary}} {{/}}" } } ] }
End goal to have it print in this format:
- Child Ticket 1
- - Customfield value for child ticket 1
- Child Ticket 2
-- Customfield value for child ticket 2
Currently its printing out nothing. My current dummy ticket has one child ticket associated it to but can't get anything to print out.
Your Web Request isn't properly iterating through child tickets. Try this:
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "{{#lookupIssues}}- {{summary}}\n - {{customfield_XXXXX}}\n{{/}}"
}
}
]
}
Hey @Bill Sheboy i am using the cloud instance.
Sorry if I understood correctly, would this be what i should be doing instead?
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "{{#issues.summary}} {{/}}"
}
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, as the plural {{issues}} smart value is used with Jira Server / Data Center automation. For Jira Cloud, the Lookup Issues action or Send Web Request is how issues are handled in batches.
FYI...when asking questions it helps to include information about your Jira version and project type. That will help the community provide better suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Edwin Andrew -- Welcome to the Atlassian Community!
What version are you using: Jira Cloud or Server / Data Center?
Based on what you describe, I hypothesize you are using the Server / Data Center version. Automation for that version does not yet support custom fields with the Lookup Issues action, and here is the suggestion to add those: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877
For your scenario, you could use the bulk-handling feature of a branch rather than the Lookup Issues action: https://confluence.atlassian.com/automation/run-a-rule-against-issues-in-bulk-993924653.html
With that, you would replace the {{lookupIssues}} smart value with the plural {{issues}} one.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.