Skip to content

Commit

Permalink
[GH-993]: added support for subtasks in subscriptions (#1095)
Browse files Browse the repository at this point in the history
* [GH-993]: added support for subtasks in subscriptions

* [GH-993]: updated an additional condition of getting issueTypes

* [GH-993]: Added types for the subtask parameter in getIssueType function
  • Loading branch information
Kshitij-Katiyar authored Jul 25, 2024
1 parent 98af6b8 commit fe02ece
Show file tree
Hide file tree
Showing 5 changed files with 993 additions and 2,020 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"label": "Task",
"value": "10002",
},
Object {
"label": "Sub-task",
"value": "10003",
},
Object {
"label": "Story",
"value": "10001",
Expand Down Expand Up @@ -522,6 +526,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -550,6 +558,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -583,6 +595,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -611,6 +627,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -649,6 +669,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -678,6 +702,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -715,6 +743,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -753,6 +785,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down Expand Up @@ -790,6 +826,10 @@ exports[`components/EditChannelSubscription should match snapshot after fetching
"id": "10002",
"name": "Task",
},
Object {
"id": "10003",
"name": "Sub-task",
},
Object {
"id": "10001",
"name": "Story",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default class EditChannelSubscription extends PureComponent<Props, State>
render(): JSX.Element {
const style = getModalStyles(this.props.theme);

const issueTypes = getIssueTypes(this.state.jiraIssueMetadata, this.state.filters.projects[0]);
const issueTypes = getIssueTypes(this.state.jiraIssueMetadata, this.state.filters.projects[0], {includeSubtasks: true});
const issueOptions = issueTypes.map((it) => ({label: it.name, value: it.id}));

const customFields = getCustomFieldValuesForEvents(this.state.jiraIssueMetadata, this.state.filters.projects);
Expand Down
Loading

0 comments on commit fe02ece

Please sign in to comment.