This is a modal that is designed to be used by every app to report an issue about that app within that app, rather than having to navigate to
issue tracker. It does not have access to Issue Trackers various Ember models because it is outside the context of the Issue Tracker App.
Thus the modal which is used within the Issue Tracker App itself extends this modal and adds a few features to it (such as flags). This modal
is called within the FwIssueLink, so you never need to actually call it, it is just helpful to know what it does.
Private properties are available to be overridden in Issue Tracker App (unless they are read only), but not able to be passed into the modal via the model property.
BASIC_ISSUE_TYPES
Array privateValid options for issue types for most users (Bug and Feature). Constant.
extendedOptions
Boolean privateIf true, user has permissions to see additional options. Set by didReceiveAttrs based on user roles.
FULL_ISSUE_TYPES
Array privateValid options for issue types for admins and developers (Bug, Feature, and Proposal). Constant.
model
HashThe model property for the report-issue modal takes two properties: issue, which is the issue model that is being edited, and fallback, which is a string of a
link to be displayed as "Alternative Link" if there is an error saving the issue to Issue Tracker.
priorityOptions
Array privateValid options for issue priorities (default: Low, Normal, Important, Critical, and Release ASAP). Can be overridden when extending this modal in Issue Tracker App to add or change priorityOptions, but it currently is not overridden.
showFallback
Boolean privateWhether or not to show the fallback link in the modal. Computed if there is an error saving and a fallback link set.
statusOptions
Computed Array privateValid options for the status dropdown. Computed property, which displays proper status based upon the details of the issue itself. A summary of when certain statuses appear is as follows:
Unconfirmed: Appears when either user is not an admin, or if the user is outside the Issue Tracker App. Resolves tonewin Bitbucket. Note: issues with this status do not appear in the Issue Tracker App on the "Open Issues" page for users with a developer role.Confirmed: Appears if there is no lastPushed date. Resolves toopenin Bitbucket.In development: Appears if there is a lastPushed date for the issue. Resolves toopenin Bitbucket.Road BLock: Appears when there is an assignee for the issue. Resolves toon holdin Bitbucket.Future: Appears if the user is an admin when there is not an assignee for the issue. Resolves toon holdin Bitbucket. Note: issues with this status do not appear in the Issue Tracker App on the "Open Issues" page for users with a developer role.Ready for Release: Appears in the dropdown only when the issue has an assignee. Resolves toresolvedin Bitbucket.Duplicate: Always appears. Resolves toduplicatein Bitbucket.Invalid: Always appears. Resolves toinvalidin Bitbucket.
Note: The Resolved (Bitbucket: closed) issue status never shows up in this dropdown as the only way to close an issue is to releas it.
typeOptions
Array privateOptions used in the type modal. Returns either FULL_ISSUE_TYPES or BASIC_ISSUE_TYPES depending on whether extendedOptions is true or not.