Forums

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

Multiple Lookup Issues Same Jira Rule

Andre Menezes May 5, 2024

Hello all,

 

I am trying to build a rule, which I have multiple lookup issues and I need to send the result of these lookup issues in a Slack Message.

 

So, I am using variables to store the result of the Lookupissues, but, it is not working. I am not sure what is missing. See below the rule:

 

Also, I am not sure if the text I am adding on the Slack Message is correct, I am trying to write the Jira Hyperlink.

 

Hello Team, see below the pending tickets:


Pending Tickets:
{% for issue in pendingissues %}
• <{{issue.url}}|{{issue.key}}>
{% endfor %}

Missing Requester
{% for issue in missingrequester %}
• <{{issue.url}}|{{issue.key}}>
{% endfor %}

 

Captura de Tela 2024-05-05 às 15.50.06.png

1 answer

0 votes
Jack Brickey
Community Champion
May 5, 2024

Hi @Andre Menezes ,

  • what do you observe? 
  • what does the audit show?
  • Can you add a log action to capture the variables for troubleshooting purposes?
  • Can we simplify to a single variable until you get it working? Just to simplify things.
Andre Menezes May 5, 2024

Hey @Jack Brickey thanks for responding.

 

So, the rule was triggered, but, the message sent in Slack was empty, without the tickets and with the If statement and codes I added, see below:

Hello Team, see below the pending tickets:

Pending Tickets:
{% for issue in pendingissues %}
  • <|>
{% endfor %}Missing Requester
{% for issue in missingrequester %}
  • <|>
{% endfor %}

 

So, my guess is that the lookupissues action may be working, but, the error is on the Slack Message, see the logs - the error is, Error rendering smart-values when executing this rule:

Captura de Tela 2024-05-05 às 16.38.59.png

 

Suggest an answer

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

Atlassian Community Events