Forums

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

What is eventTypeId for Issuelink Created?

alexmears
Contributor
July 21, 2019

Currently

I have a Script Listener for Issuelink Created / Deleted events that runs FunctionX

Under certain conditions, I want FunctionX to be run for linked issues.

My solution for this is to fire an "Issuelink Created" event for these linked issues.

issueEventManager.dispatchEvent (Long eventTypeId, Issue {linkedIssue}, User event.user);

Problem

What is the eventTypeId for "Issuelink Created"?

1 answer

1 accepted

2 votes
Answer accepted
Matias Stachowski
Contributor
July 22, 2019

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/event/type/EventType.html

 

It is the ID of the EventType that other listeners can listen for. So for example EventType.ISSUE_CREATED_ID signifies an issue created event. Which listeners "OnIssueCreatedEvent" can react to.

Suggest an answer

Log in or Sign up to answer