Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,145
Community Members
 
Community Events
184
Community Groups

Auto-Comment an Approved request with JMWE.

I just made a nice post function and I wanted to share it to the world:

In our Company, we have some tickets that after they get approved the component leader must be notified to perform a specific task. 

I made a Post function to get the component leader and mention him in a comment. 

If the component does not have a lead it will randomly mention a specific person from a list. 

{% set comp = issue.fields.components | field("name") %}

{% for i in range(0,comp | length) %}
{%set des = issue.fields.components | find({"name":comp[i]}) | field("description") %}
{% if des | length != 0%}
[~{{des}}] please address this task.
{% else %}
[~{{ ["*****@*****.com","*****@*****.com"] | random }}] please address this task.
{% endif %}
{% endfor %}

 

 In our Jira Cloud instance, some users key is their email address and for other, it is the first part of their email address so we chose to get the description of a component and we made sure that we enter the key of the account of the Project lead. 

1 comment

Thanks @Dimitris Damaskos , the post function helped me with the @mention syntax in cloud :)

Like Dimitris Damaskos likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events