Closed mickmister closed 3 months ago
Hi @mickmister, I explored this further and found that removing the filter from this line will have the following effects:
Add Jira Subscription
modal.
Issue Type
dropdown of the Create Jira Issue
modal.Please create your Jira issue manually. The project you tried to create an issue for has required fields this plugin does not yet support: Parent
Parent Issue
in the createJiraIssue
API call payload.Parent Issue
as an input field in the Create Jira Issue
modal.@Kshitij-Katiyar Okay so subscriptions are working correctly with subtasks after that small change :+1: Though it leaves the "create issue" modal in a partially broken state with no support for subtasks. How much effort do you think it would take to support subtasks in the "create issue" modal? We already have an issue searching thing per project, so maybe we could just reuse that code/component for searching for the parent issue.
Maybe we can split this up into 2 PRs:
!i.subtask
line only runs for the "create issue" modal. This way subscriptions can immediately support subtasksWhat do you think @Kshitij-Katiyar?
@Kshitij-Katiyar Okay so subscriptions are working correctly with subtasks after that small change 👍 Though it leaves the "create issue" modal in a partially broken state with no support for subtasks. How much effort do you think it would take to support subtasks in the "create issue" modal? We already have an issue searching thing per project, so maybe we could just reuse that code/component for searching for the parent issue.
@mickmister I think it will take about 10-12 hrs for adding support for sub-tasks in create issue modal.
Maybe we can split this up into 2 PRs:
One that makes it so the !i.subtask line only runs for the "create issue" modal. This way subscriptions can immediately support subtasks One that implements support for the "create issue" modal. I think we can make this one HW What do you think @Kshitij-Katiyar?
@mickmister That sounds good. We can pick up the second task if there are any requests for that.
@mickmister Created an issue for the second task. https://github.com/mattermost/mattermost-plugin-jira/issues/1093
At the moment, we don't support selecting "subtask types" as "issue types" in the subscription modal. It seems this is on purpose based on this line:
https://github.com/mattermost/mattermost-plugin-jira/blob/a86928d1d0c0c2493df5a2690ea8f54f515fd9a5/webapp/src/utils/jira_issue_metadata.tsx#L63
The task here is to look into the feasibility of supporting subtasks in the subscriptions feature. This would also affect the create issue modal if we were to change the line shown above.