Forums

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

How to get the actual Automation Event with Scriptrunner or are there Smart Values?

Markus W_ BENES
Contributor
August 2, 2023

I want ot make a single Multiple issue events Automation and differ within of it between the different events. For example i want to make a Multiple issue events Automation with the events "Issue Commented" and "Issue Comment edited", so that the automation starts in both cases. Within the Automation i want to be able to say; when the actual event is "Issue Commented" to do that; or else when the "Issue Comment is edited" so do that.

How can i differ between the events or find out which event is actually running in Scriptrunner or are there Smart Values to differ by them?

3 answers

1 accepted

0 votes
Answer accepted
Markus W_ BENES
Contributor
August 2, 2023

@Marc - Devoteam thanks for your answer; the solution with smart values for my needs i already posted before; what i want is to get the actual running event in scriptrunner during automation.

1 vote
Markus W_ BENES
Contributor
August 2, 2023

Found a first answer for smart values version; value for it is: {{eventType}}

 

within automation set:

  • if block
  • Advanced Compare Condition
  • First value = {{eventType}}
  • Equals:
  • Second Value = one of the following
    • jira:issue_updated:issue_commented
    • jira:issue_updated:issue_comment_edited

 

hope this is of help for someone; but also like do be able to do it in scriptrunner :)

0 votes
Marc - Devoteam
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.
August 2, 2023

Hi @Markus W_ BENES 

All Smart Values for Jira Automation in Server and DC

See sections

  • issue.comments
  • comment

Suggest an answer

Log in or Sign up to answer