Forums

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

Hello, I'm trying to create automation and need a condition to be based on a tempo team

Aaron Howard October 13, 2023

I'm trying to create automation for a specific tempo team to receive an email when an incident is assigned to them... I have tried a few different was to achieve this but fail at that custom field assignment. 

I have tried the advanced compare condition using the custom field then equals Tempo Team ID and no luck...

When i look at the "Issue Fields condition" there is no option for tempo team or a way for me to use either {"fields":{"customfield":} or {{issue.customfield_xxxxx}}...

2 answers

1 accepted

0 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.
October 13, 2023

Hi @Aaron Howard 

Please use the Advanced Compare Condition when the fields you want to test are not listed in the drop-down fields of the basic Field Condition.  That one allows you to specify a smart value expression.

Kind regards,
Bill

Aaron Howard October 13, 2023

Hi @Bill Sheboy Thank you for responding! I checked that one too. Im not sure on how to split the value. When I tried {{issue.customfield_xxxxx}} for the custom field then the first value then tempo team ID in the second the logs said condition not met. 

Then I tried {"fields":{"customfield":} in the first value then team ID for the second value and received the same message? 

Im sure I'm doing something wrong I'm just not sure what values are needed there. 

Thanks!

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.
October 13, 2023

Smart values are name, spacing, and case-sensitive.  And the smart values available in rules often are different than the field name displayed in the UX.

Thus it can help to first confirm your custom field id, or smart value, is supported by rules and the correct value to use.  This how-to article can help.  Essentially you...

  • identify an example issue with your field
  • call a REST API function using a web browser
  • search on the page for your field to find the smart value and custom field id

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Once you have the value, try using that in your condition.  For example, it will probably be something like this:

  • first value: {{issue.customfield_12345}}
  • condition: equals
  • second value: 6789

Please substitute in your values once you find them.

Aaron Howard October 31, 2023

This worked! I just needed to use "contains" instead of "equals". TY!!!!!

Like Bill Sheboy likes this
1 vote
Susan Wu
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.
October 13, 2023

Hi @Aaron Howard ,

Please refer to this KB for setting up Tempo Team on Jira automation.

https://tempo-io.atlassian.net/wiki/spaces/KB/pages/1822982145/Set+a+Tempo+team+on+Jira+issue+assignment

Best regards,

Susan Wu

Tempo Product Expert

Aaron Howard October 13, 2023

Thank you for this info! It helps with another issue I am having related to issue collector.

  In the scenario I mentioned above I am not trying to change the tempo team. I am trying to set an "IF" or "AND" condition that sees that a specific tempo team is already assigned and sends an email to that team alerting that the incident has been assigned to the team. 

What I have..

+ When Issue Created

- If : Issue Type Equals 

     Incident

And; Reporter is 

Our ticketing system

And: Project Equals

   Our Program

And **(this is where I'm looking to add a condition to check the tempo team)**

Then: Send Email

  This would go to the tempo team email distro

 

I hope this makes better sense. 

 

THANK YOU!!!

Susan Wu
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.
October 16, 2023

It would be more complicated if you wish to alert all team members. But it would be easier if you just alert the team lead.

With the Team endpoint, you have already gotten the team lead's accountId from the previous call. You can store it as a local variable and get team lead's email with Jira REST API.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events