View Full Version : suggestion : thread to issue !!!
baghdad4ever
05-05-2010, 10:36 AM
hi
i suggest to add this option to the thread tool by which we can transform any thread from forum to issue in the pt
like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=66823&d=1184144362
thanks
King Kovifor
05-05-2010, 01:14 PM
This suggestion will be placed in our tracker. :)
cloferba
05-06-2010, 04:36 PM
yes! very important =)
PitchouneN64ngc
05-10-2010, 10:19 AM
I already adapted it to vB4 for my needs, it could be easy to integrate it as default feature.
cevou
05-18-2010, 10:27 AM
Is it possible to convert a thread into an issue?
I used a forum for my bugs before and want to use project tools now.
PitchouneN64ngc
05-18-2010, 07:56 PM
This feature is not implemented actually, and could be added in a later release. We need to discuss about suggested features between devs :)
baghdad4ever
05-19-2010, 10:39 AM
This feature is not implemented actually, and could be added in a later release. We need to discuss about suggested features between devs :)
i think it is very usefull and someone make it but for 3.8
i hope to see it implemented in 2.1.1
thanks
cevou
05-27-2010, 04:41 PM
Until it's implemented I wrote a code snippet, that copies threads into project tools.
<?php
//MySQL Server-Data
$server = "localhost";
$db = "db";
$user = "user";
$pass = "pass";
$fromforum = 19;
$saveastype = "bug";
$projectid = 1;
//Create connection and connect
$conn = mysql_connect($server,$user,$pass);
//Select database
mysql_select_db($db,$conn);
$res = mysql_query("SELECT * FROM thread WHERE forumid=".$fromforum);
while ($r = mysql_fetch_array($res)) {
mysql_query("INSERT INTO pt_issue (projectid,issuetypeid,title,submituserid,submitus ername,submitdate)
VALUES (".$projectid.",'".$saveastype."','".$r['title']."','".$r['postuserid']."','".$r['postusername']."','".$r['dateline']."')");
$res2 = mysql_query("SELECT * FROM post WHERE threadid=".$r['threadid']." ORDER BY dateline");
$issueid = mysql_insert_id();
while ($r2 = mysql_fetch_array($res2)) {
mysql_query("INSERT INTO pt_issuenote (issueid,dateline,pagetext,userid,username)
VALUES ('".$issueid."','".$r2['dateline']."','".$r2['pagetext']."','".$r2['userid']."','".$r2['username']."')");
}
mysql_query("UPDATE pt_issue SET lastpost='".$r2['dateline']."', lastactivity='".$r2['dateline']."', lastpostuserid='".$r2['userid']."', lastpostusername='".$r2['username']."' WHERE issueid=".$issueid);
}
?>
PitchouneN64ngc
05-27-2010, 05:33 PM
Added into 2.1.1.
baghdad4ever
05-27-2010, 06:13 PM
Added into 2.1.1.
thank you very much
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.