Skip to content

Commit a257247

Browse files
leplatremdavehunt
authored andcommitted
Fix mozilla#606, fix mozilla#936: Polish actions docs (mozilla#1072)
1 parent a5cc057 commit a257247

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/ISSUE_TEMPLATE/new-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ body:
5353
- label: Issue Type (please provide mapping, eg. `enhancement` -> `Story`)
5454
- label: Status (please provide mapping, eg. `RESOLVED` -> `Done`)
5555
- label: Resolution (please provide mapping, eg. `WONTFIX` -> `Won't do`)
56+
- label: Priority
57+
- label: Severity
58+
- label: Issue points
59+
- label: Comments
60+
- label: Keywords (as labels)
5661
- label: Whiteboard tags (as labels)
5762
- label: Assignee (Bugzilla and Jira user must use the same email address)
5863
- label: Field changes (recorded as comments on the issue)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ System to sync Bugzilla bugs to Jira issues.
99
## Caveats
1010
- The system accepts webhook events from Bugzilla
1111
- Bugs' `whiteboard` tags are used to determine if they should be synchronized or ignored
12-
- Only public bugs are eligible for sychronization.
12+
- **Only public bugs** are eligible for synchronization.
1313
- The events are transformed into Jira issues
1414
- The system sets the `see_also` field of the Bugzilla bug with the URL to the Jira issue
15-
- No other information is sychronized from Jira to Bugzilla.
15+
- No other information is synchronized from Jira to Bugzilla.
1616

1717
> **Note:** whiteboard tags are string between brackets, and can have prefixes/suffixes using
1818
> dashes (eg. ``[project]``, ``[project-fx-h2]``, ``[backlog-project]``).
@@ -67,6 +67,7 @@ graph TD
6767
6868
- If you are not an admin of the Jira project, contact the admin or reach out to `#jira-support` in Slack to determine how best to request the changes described above
6969
70+
1. Some actions require specific fields on the create and update screens in Jira. Double check the [actions documentation](docs/actions.md)
7071
1. Once your configuration is merged and a JBI release is deployed, create a bug in Bugzilla and add your whiteboard tag to the bug. Note that the tag must be enclosed in square brackets (eg. `[famous-project]`). You should see an issue appear in Jira
7172
- If you want to start syncing a bug to a Jira issue that already exists, add the issue's link to the `See Also` section of the Bugzilla bug before you add the whiteboard tag
7273

docs/actions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,25 @@ linked Jira issue status to "Closed". If the bug changes to a status not listed
138138
- `maybe_assign_jira_user`:
139139
It will attempt to assign the Jira issue the same person as the bug is assigned to. This relies on
140140
the user using the same email address in both Bugzilla and Jira. If the user does not exist in Jira
141-
then the assignee is cleared from the Jira issue. The Jira account that JBI uses requires the "Browse
142-
users and groups" global permission in order to set the assignee.
141+
then the assignee is cleared from the Jira issue.
142+
**Requirements**: The Jira account that JBI uses requires the "Browse users and groups" global permission in order to set the assignee.
143143
- `maybe_update_issue_resolution`:
144144
If the Bugzilla ticket resolution field is specified in the `resolution_map` parameter, it will set the
145145
Jira issue resolution.
146+
**Requirements**: ``resolution`` field must be present on issue forms (or configure `jira_resolution_field`).
146147
- `maybe_update_issue_status`:
147148
If the Bugzilla ticket status field is specified in the `status_map` parameter, it will set the
148149
Jira issue status.
149-
- `update_issue`
150150
- `add_jira_comments_for_changes`
151-
- `maybe_assign_jira_user`
152151
- `maybe_update_issue_priority`
152+
**Requirements**: ``priority`` field must be present on issue forms (or configure `jira_priority_field`).
153153
- `maybe_update_issue_resolution`
154154
- `maybe_update_issue_severity`
155+
**Requirements**: ``customfield_10319`` field must be present on issue forms (or configure `jira_severity_field`).
155156
- `maybe_update_issue_status`
157+
- `maybe_update_issue_points`
158+
**Requirements**: ``customfield_10037`` field must be present on issue forms (or configure `jira_cf_fx_points_field`).
156159
- `create_comment`
157160
- `sync_keywords_labels`
158161
- `sync_whiteboard_labels`
159162
- `maybe_update_components`: looks at the component that's set on the bug (if any) and any components added to the project configuration with the `jira_components` parameter (see above). If those components are available on the Jira side as well, they're added to the Jira issue
160-

0 commit comments

Comments
 (0)