Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save user's last used field values from Create Issue modal, to be used for future issue creations #855

Closed
mickmister opened this issue May 9, 2022 · 7 comments · Fixed by #969
Labels
Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers

Comments

@mickmister
Copy link
Contributor

mickmister commented May 9, 2022

At the moment, the plugin saves a given user's last selected Jira project in the Create Issue modal. However other fields, such as issue type and labels, are not saved.

The task here is to make it so when a user submits the Create Issue modal, the field values in the submission can be used for creating another ticket in the future. A more advanced version of this feature allow for custom configurations of field values, but the scope of this task is just to support the last used form submission.

Relevant thread https://community-daily.mattermost.com/core/pl/pxdo44fnk7rkxf1tmqge65g9rw

@mickmister
Copy link
Contributor Author

@matthewbirtch How do you see this working, in regards to when we should use these values? Should we simply assume that the user wants to use the previously entered values, and provide a way to clear the fields?

@mickmister mickmister added Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers labels May 9, 2022
@matthewbirtch
Copy link

@mickmister I think it depends on the fields. I would suggest, we pre-fill the issue type, but maybe not the labels. Could you provide all the fields that are possible in the form?

@mickmister
Copy link
Contributor Author

@matthewbirtch Although pre-selecting the Issue Type is helpful, I think if we are visiting this feature, we should try and make it as convenient as possible for power users. A strong use case this is scanning posts to triage for your team, so you would want to have the same Mattermost Team and Fix Version, and possibly things like Labels and Epic Link.

A customer has requested we support Issue Types and Components. If we were to support Components, I think it makes sense to support arbitrary select fields as well.

I was thinking we would mimic Jira's "Create another" feature, where all fields remain filled in besides "Summary" and "Description".

@matthewbirtch
Copy link

Ya, I can get behind that. We may want to massage which fields we prefill as we go, but I think your proposal could work.

Prefilling fields can help, but we'll want to make sure we haven't taken it too far where users end up having to remove a lot of the prefilled fields anyway.

Project, Team, Issue Type, Components make more sense to me to prefill, but I don't know if Fix Version, Labels or Epic make as much sense to me.

The one concern I would have is that tickets could get filed mistakenly because of the prefilled fields

@mickmister
Copy link
Contributor Author

Prefilling fields can help, but we'll want to make sure we haven't taken it too far where users end up having to remove a lot of the prefilled fields anyway.

@matthewbirtch Right, this is why I suggested having a "Clear All" option, to start from scratch. Maybe we should get more feedback on this before sticking to an extreme one way or another (small subset of fields or large)

@matthewbirtch
Copy link

I think it would help to understand some of the user cases better, but I don't have a huge problem with determining a sensible set of prefilled fields and getting feedback on that

@Phrynobatrachus
Copy link

+1 for Team, Issue Type, Components and potentially Labels, primarily for bug triage like @mickmister mentioned.

@Kshitij-Katiyar Kshitij-Katiyar added this to the v4.1.0 milestone Sep 7, 2023
raghavaggarwal2308 added a commit to Brightscout/mattermost-plugin-jira that referenced this issue Sep 12, 2023
…values (#67)

* [MI-3466] Fix Jira issue mattermost#955: Save user's last used field values

* [MI-3466] Code refactoring

* [MI-3466] Fixed issue: not able to select prject while creating subscriptions

* [MI-3466] Review fixes
@avas27JTG avas27JTG modified the milestones: v4.1.0, next milestone Dec 21, 2023
mickmister pushed a commit that referenced this issue Mar 14, 2024
* [MI-3466] Fix Jira issue #855: Save user's last used field values (#67)

* [MI-3466] Fix Jira issue #955: Save user's last used field values

* [MI-3466] Code refactoring

* [MI-3466] Fixed issue: not able to select prject while creating subscriptions

* [MI-3466] Review fixes

* Review fix

* [MI-3690] Removed the logic to save the component field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants