issue view event in jira

hi,

i want to do some custom tasks in issueview class but since my tasks may be vary and i may want change them and add to them , i can not add my code directly in viewissue class

i want to know that is there any way that help me to know when an issue viewed ?forexample some thing like issueeventlistener

can i add a custom event to jira that every time that an issue viewed it trigger and notify me?

2 answers

0 vote

Jira doesn't track issue-view this way.

You'll need to add something to the core of Jira to get it to react to issue-view, or put something in javascript to trigger something. Bear in mind that the user activity that does generate events is a fraction of what Jira does and if you start putting actions on every view of an issue, you could cripple your server. One of my clients did when they did something similar.

Well, you need to go as far as modifying core JIRA, but custom code definitely. There is a difference to UI interactions vs Events though, Events say 'what' happened but not necessarily 'how' (interactive user, remote api, scheduled job, email).

You're actually asking two questions though;

1) i want to do some custom tasks in issueview class

Be more specific. This can be interpeted as 'I want to do something that does not change how viewissue currently works', which is easily achievable using Servlet Filters that can target the 'what'. If you want to actually do fancy stuff, that gets harder.

2) can i add a custom event to jira that every time that an issue viewed it trigger and notify me?

Is that really what you want?! you didnt indicate anything about filtering so the requirement as stated is 'anyone' loading an issue, including you, will notify you of that

An even isn't fired on viewissue, but if you really want be notified when someone views the issue at all, filters can hook into when that happens, technically you could trigger a notification (eg email) at that point.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

91 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you