MantisKanban plugin not working

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
herrhumza
Posts: 1
Joined: 27 Feb 2024, 10:15

MantisKanban plugin not working

Post 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.
Attachments
mantis-bt.png
mantis-bt.png (75.81 KiB) Viewed 18594 times
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: MantisKanban plugin not working

Post 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.
dregad
Developer
Posts: 94
Joined: 26 Jul 2010, 14:24

Re: MantisKanban plugin not working

Post by dregad »

cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: MantisKanban plugin not working

Post by cas »

Attached an initial version for Mantis 2x.
Will be published on Github shortly.
Review and provide feedback :mrgreen:
Attachments
MantisKanban2.zip
(8.28 KiB) Downloaded 709 times
kguest
Posts: 7
Joined: 21 Aug 2023, 11:53

Re: MantisKanban plugin not working

Post 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
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: MantisKanban plugin not working

Post 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
kguest
Posts: 7
Joined: 21 Aug 2023, 11:53

Re: MantisKanban plugin not working

Post 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 |
+----------+-------------+--------------+----------+
kguest
Posts: 7
Joined: 21 Aug 2023, 11:53

Re: MantisKanban plugin not working

Post 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'],
        );
        
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: MantisKanban plugin not working

Post by cas »

No need Kguest, I already applied the fix. Thanks for your improvement :D
kguest
Posts: 7
Joined: 21 Aug 2023, 11:53

Re: MantisKanban plugin not working

Post 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 :)
Post Reply