I always got the IssueManager the following way:
ComponentAccessor.getIssueManager()
Now in my friend's code I saw another way:
@JiraImport
private IssueManager issueManager;
So is there any difference in the 2 approaches ? What is better ? I really liked using ComponentAccessor.
In general I find it quite interesting that there are always at least 2 ways to get a specific object. For example to get the attachments of an issue , you can get it from issue itself all via the AttachmentManager.