PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/test/resources/examples/i18n.groovy

https://bitbucket.org/sorin/jira-plugin-intellij
Groovy | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | ddbde6d2c48cf24a05ac55f44d1a0acf MD5 | raw file
  1. package examples
  2. import com.atlassian.jira.ComponentManager
  3. import com.atlassian.jira.security.JiraAuthenticationContextImpl
  4. import com.atlassian.jira.issue.watchers.WatcherManager
  5. import com.atlassian.jira.issue.MutableIssue
  6. ComponentManager componentManager = ComponentManager.getInstance()
  7. componentManager.getJiraAuthenticationContext().getI18nBean().getText('common.concepts.changepassword')
  8. WatcherManager watcherManager = componentManager.getWatcherManager()
  9. MutableIssue issue = componentManager.getIssueManager().getIssueObject('VPP-35')
  10. watcherManager.startWatching(componentManager.getJiraAuthenticationContext().getUser(), issue.genericValue)