Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Jira automation based on latest mail recipient

Hi I use the Jira Service desk, I would like know if it there a way to do an automation based on latest mail recipient. I mean, when a ticket is created and there is a response, there is a chance that the last recipient will be updated.

Thank you.

1 answer

0 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 09, 2023

Hi @Nedda Caldas and welcome to the community!

I'm not sure what you mean by "last recipient".  Requests that are generated by email use the message sender as the recipient.  Depending upon notification settings, subsequent comments are sent to the reporter, assignee and any request participants/watchers.  

So, "last recipient" isn't really as relevant as the reporter, assignee, request participants, and watchers.  Perhaps you can provide a little more context into what your goals are for this automation?

Hi Mark, 

Thanks for your response!

Basically I want to update the ticket status (state) in Service desk based on latest mail recipient, i.e. I have two status possible: "pending internal review" or "pending external review", and according to whom the last mail is sent (recipient from my company or not), I want to automate this status.

Do you know if this is possible ?

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 09, 2023

So you're trying to establish whether the last comment author was an agent or someone external?

If that's the case, you could do something like this:

  • TRIGGER: Issue commented
  • IF CONDITION:
    • Advanced
      This will check if the comment came from inside your email domain
      • {{comment.author.emailAddress}}
        Contains
        YOURDOMAIN (e.g. example.com)
    • Advanced
      This will check if the comment is a public comment
      • {{comment.internal}}
        Equals
        FALSE
    • Status Not Equal Pending Enternal Review
      This prevents an error when the status is already in Pending External Review
    • ACTION: Transition Issue (to Pending Enternal Review)
  • ELSE
    This will be the inverse of above:
    • Advanced
      • {{comment.author.emailAddress}}
        does not contain
        YOURDOMAIN (e.g. example.com
    • Status Not Equal Pending Internal Review
    • ACTION: Transition Issue (to Pending Internal Review)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events