本文转自:https://docs.atlassian.com/jira-software/6.7.6/com/atlassian/greenhopper/service/issue/flagging/FlagService.html
com.atlassian.greenhopper.service.issue.flaggingpublic interface FlagService
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<ErrorCollection> |
flag(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, boolean flag)
Flags / unflags issues according to the given parameter.
|
Boolean |
isFlagged(com.atlassian.jira.issue.Issue issue)
Get the flagged value for the gifen issue.
|
ServiceOutcome<ErrorCollection> flag(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, boolean flag)Flags / unflags issues according to the given parameter.
user
- the actorissues
- the collection of issuesflag
- true
to flag, false
to unflagErrorCollection
if all the issues were succesfully updated, a valid outcome with a non empty ErrorCollection
if some of the issues were not updated, an invalid outcome if all the issues were rejectedBoolean isFlagged(com.atlassian.jira.issue.Issue issue)Get the flagged value for the gifen issue.
issue
- the target issue