View Issue Details

IDProjectCategoryView StatusLast Update
0005007mantisbtcustomizationpublic2014-10-11 04:05
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

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?

2004-12-17 14:46

 

ical.gif (1,721 bytes)   
ical.gif (1,721 bytes)   

2004-12-17 14:47

 

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)   

2004-12-17 14:52

 

bug_ical.zip (1,783 bytes)
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
?>

2004-12-20 14:00

 

mantis_ical.zip (2,832 bytes)
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

2006-03-13 14:34

 

mantis_ical_101.zip (4,007 bytes)

2006-03-15 16:20

 

mantis_ical101b.zip (3,622 bytes)
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  

ICAL.ZIP (4,772 bytes)
cas

cas

2014-10-11 04:05

reporter   ~0041552

here is the plugin

Issue History

Date Modified Username Field Change
2004-12-17 14:13 CasNuy New Issue
2004-12-17 14:38 jlatour Note Added: 0008709
2004-12-17 14:38 jlatour Status new => feedback
2004-12-17 14:46 CasNuy File Added: ical.gif
2004-12-17 14:47 CasNuy File Added: 1103316605.vcs
2004-12-17 14:52 CasNuy File Added: bug_ical.zip
2004-12-17 14:55 CasNuy Note Added: 0008711
2004-12-17 14:59 CasNuy Note Edited: 0008711
2004-12-17 15:12 jlatour Status feedback => acknowledged
2004-12-17 15:12 jlatour Summary Scripts to addical functionality => Scripts to add ical functionality
2004-12-17 15:13 jlatour Relationship added child of 0004181
2004-12-20 14:00 CasNuy File Added: mantis_ical.zip
2004-12-20 14:02 CasNuy Note Added: 0008743
2006-03-13 14:34 CasNuy Note Added: 0012331
2006-03-13 14:34 CasNuy File Added: mantis_ical_101.zip
2006-03-15 16:20 CasNuy File Added: mantis_ical101b.zip
2006-03-15 16:21 CasNuy Note Added: 0012343
2014-10-10 15:41 grangeway Note Added: 0041527
2014-10-10 15:42 grangeway Tag Attached: plugin
2014-10-11 04:05 cas File Added: ICAL.ZIP
2014-10-11 04:05 cas Note Added: 0041552