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?
Jira doesn't track issue-view this way.
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.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG