Page 1 of 1

MantisKanban plugin not working

Posted: 27 Feb 2024, 10:26
by herrhumza
Hello, I am using Mantisbt 2.26.0, and I want to install MantisKanban plugin. The MantisKanban plugin requires jQuery 1.6.2.
Now I got the plugin from this link: https://github.com/thinksentient/MantisKanban, This plugin says it requires Core 1.2.0 and jQuery 1.6.2.
But I am using Core 2.26.0 and if I see the jQuery plugin from this link: https://github.com/mantisbt-plugins/jquery, This plugin says that the core should be 1.2.0 < 1.3. Now it's a deadlock for me. I shall be grateful if someone guides to me fix this thing.
Thanks in advance.

Re: MantisKanban plugin not working

Posted: 05 Mar 2024, 15:02
by cas
This is relative easy. That plugin will not run on Mantis 2.x. Having looked @ the code, it seems pretty easy to make it work on later versions of Mantis.

Re: MantisKanban plugin not working

Posted: 15 Mar 2024, 08:01
by dregad

Re: MantisKanban plugin not working

Posted: 15 Mar 2024, 13:40
by cas
Attached an initial version for Mantis 2x.
Will be published on Github shortly.
Review and provide feedback :mrgreen:

Re: MantisKanban plugin not working

Posted: 17 Mar 2024, 14:59
by cas

Re: MantisKanban plugin not working

Posted: 13 Nov 2024, 13:55
by kguest
Is there any documentation for how to set this up?*

I have some Groups created with distinct status(es) set for them, but all I see are the same tickets showing in every group instead of there being different tickets in each distinct group.

thanks!

* I installed Mantis Kanban Board 2.1.1 into a Mantis 2.27.0 environment

Re: MantisKanban plugin not working

Posted: 13 Nov 2024, 14:31
by cas
I made it work in Mantis 2.x but did not really added nice configuration pages.
As described in the readme, you can configure this inside a php-page (pages/kanban_page.php).
Around line 56, you will find the following code:

Code: Select all

$columns = array(
	'Backlog' => array('status' => 10),
	'Assigned Backlog' => array('status' => array(50)),
	'In Progress' => array('status' => array(30, 40)),
	'Feedback' => array('status' => 20),
	'Done' => array('status' => array(80)),
);
Here you can define your own set of columns and assiciated statusses.
Once done, save the script and there you are.
Hope this helps.
The plugin is working, it is managing the expectations :D

Re: MantisKanban plugin not working

Posted: 13 Nov 2024, 16:37
by kguest
hmm. I played around with entries in the config table.
ignoring the groups that are supposed to have more than one set of tickets in them it does seem to work ok without changing code.

:D

Code: Select all


MariaDB [bugtracker]> select * from mantis_plugin_MantisKanban_kanbangroups_table;
+----------+-------------+--------------+----------+
| group_id | group_title | group_status | order_id |
+----------+-------------+--------------+----------+
|       14 | Something | 20           |       99 |
|       18 | Assigned    | 50           |       99 |
|       19 | Resolved    | 80           |       99 |
|       20 | New         | 10           |       10 |
|       21 | Closed      | 90           |       99 |
|       22 | Finished    | 80, 90       |       99 |
+----------+-------------+--------------+----------+

Re: MantisKanban plugin not working

Posted: 13 Nov 2024, 17:26
by kguest
Changing $filter_array in the kanban_page.php to the following fixes the problem about groups with more than one status not showing all relevant tickets.

Do you want me to make a pull request? :-)

Code: Select all

                $filter_array = array(
            'status' => explode(",", $row['group_status']),
            '_view_type' => 'advanced',
            'priority' => $t_filter['priority'],
            'handler_id' => $t_filter['handler_id'],
        );
        

Re: MantisKanban plugin not working

Posted: 13 Nov 2024, 17:44
by cas
No need Kguest, I already applied the fix. Thanks for your improvement :D

Re: MantisKanban plugin not working

Posted: 14 Nov 2024, 17:19
by kguest
Ive added a new improvement so that you can edit the details of a kanban group through the UI on an edit page instead of either updating the database directly or having to delete and then add the group details with the changes.

pr is at https://github.com/mantisbt-plugins/Man ... an/pull/18 :)