View Issue Details

IDProjectCategoryView StatusLast Update
0005007mantisbtcustomizationpublic2021-08-28 11:38
ReporterCasNuy Assigned To 
PrioritynormalSeveritytweakReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version0.19.2 
Summary0005007: Scripts to add ical functionality
Description

I have created some scripts so one can add an issue to the calendar and/or todo list.
In the bug-view pages links have been added to copy the issue to either Calendar or ToDo list.
The summary is used as header of the entry and the description contains alink to the actual issue within Mantis.
Clearly this functionality can be controlled throug conf_inc.php

As always, happy to make this available.

Additional Information

ICAL Integration

Files affected
bug_ical_event.php New
bug_ical_todo.php New
bug_view_page.php Modified
bug_view_advanced_page.php Modified
custom_strings_inc.php Modified
// 4 Calendar Integration
$s_bug_calendar = "Copy to Calendar";
$s_bug_todo = "Copy to ToDo list";

Required setting(s) within config_inc.php :
#######################################

Mantis ical integration

#######################################
$g_show_cal = ON;
$g_show_todo = ON;
Tagsplugin
Attached Files
ical.gif (1,721 bytes)   
ical.gif (1,721 bytes)   
1103316605.vcs (229 bytes)   
BEGIN:VCALENDAR
BEGIN:VEVENT
SUMMARY:0000001: Test of adding functionality
DESCRIPTION: See also :   http://ds00/other/mantis192/bug_view_page.php?bug_id=1
DTSTART:20050501T000000Z
DTEND:20050501T235900Z
END:VEVENT
END:VCALENDAR
1103316605.vcs (229 bytes)   
bug_ical.zip (1,783 bytes)
mantis_ical.zip (2,832 bytes)
mantis_ical_101.zip (4,007 bytes)
mantis_ical101b.zip (3,622 bytes)
ICAL.ZIP (4,772 bytes)

Relationships

child of 0004181 closed Features in Mantis 1.1 release 

Activities

jlatour

jlatour

2004-12-17 14:38

reporter   ~0008709

Sounds good. Could you provide some screenshots?

Does the code adhere to the coding standards?

CasNuy

CasNuy

2004-12-17 14:55

reporter   ~0008711

Last edited: 2004-12-17 14:59

Have attached some files, including the screenprint of bug_view_page.php.
The zip file contains the code for the exports and the vcs file is a sample output doc.
The bug_ical_todo.php is still a bit dodgy but this is most likely due to MS (not yet verified).
Those files do not adhere fully to the standard but at least it works.
Below the code inserted within the bug_view pages. Please note the duedate field is another mod i have in place. Clearly this field can be changed to another standard mantis field.

<?php // NUY.INFO
if ( config_get( 'show_cal')==ON) {
$bugduedate = substr($t_bug->duedate,0,4);
$bugduedate .= substr($t_bug->duedate,5,2);
$bugduedate .= substr($t_bug->duedate,8,2);

?>
<span class="small">
<?php print_bracket_link( 'bug_ical_event.php?bug_id=' . $f_bug_id.'&summary=' .bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) .'&due=' .$bugduedate, lang_get( 'bug_calendar' ) )?>
</span>
<?php }
if ( config_get( 'show_cal')==ON) {
?>
<span class="small">
<?php print_bracket_link( 'bug_ical_todo.php?bug_id=' . $f_bug_id.'&summary=' .bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) .'&due=' .$bugduedate, lang_get( 'bug_todo' ) )?>
</span>
<?php echo "<br>"?>
<?php
}
// NUY.INFO
?>

CasNuy

CasNuy

2004-12-20 14:02

reporter   ~0008743

Have uploaded a small set on how to install this little mod.
I do not plan to make more adjustments to it.

CasNuy

CasNuy

2006-03-13 14:34

reporter   ~0012331

Have made some minor changes to the scripts and validated it versus version 1.0.1

Cas

CasNuy

CasNuy

2006-03-15 16:21

reporter   ~0012343

I was informed about some issues (due to some code I use).
Therefore uploaded the files again, hopefully now all correct.

Cas

grangeway

grangeway

2014-10-10 15:41

reporter   ~0041527

this sounds like a plugin ;)

cas

cas

2014-10-11 04:05

reporter   ~0041552

here is the plugin

sintaq

sintaq

2021-08-21 12:00

reporter   ~0065773

@cas
this workable in Mantis 2.x ?

cas

cas

2021-08-21 16:14

reporter   ~0065774

@sintaq, no the existing plugin is for 1.x but can be transformed to 2.x easily

sintaq

sintaq

2021-08-21 22:39

reporter   ~0065775

@cas
Any plan to transfer to 2.x?

BTW, just to get my head right on this plugin of yours. Click those links and it will add to user calendar / to-do list within his/her email client? Correct me if am wrong.

Or how do this thing works actually?

cas

cas

2021-08-22 10:18

reporter   ~0065778

@sintaq, discussion yo can find here: https://www.mantisbt.org/forums/viewtopic.php?f=4&amp;t=964&amp;p=43155&amp;hilit=ical#p43155
Actually not real plans for migration but with real interest I can transfer. Quite easily.
Discussion best done via the forum

sintaq

sintaq

2021-08-28 11:38

reporter   ~0065802

@cas
i shall leave it on your good hands to decide whether or not to migrate to 2.x