Taggic / IssueTracker

issue tracking as dokuwiki plugin
http://www.fristercons.de/fcon/doku.php?id=issuetracker:descr
8 stars 2 forks source link

Linking to a particular issue from wiki page #13

Closed dipakc closed 11 years ago

dipakc commented 11 years ago

It seems that it is not possible to link to an issue from another wiki page. ( eg. in trac, if you just write "#3" in a wiki page, it creates a hyperlink to this issue. If the issue is resolved then the hyperlink has strike-through format. ). It would be nice to have this feature in issuetracker.

Taggic commented 11 years ago

Trac contains a wiki engine. So it is understandable that this special wiki does consider the trac specific functions. Issue Tracker is just a plugin of DokuWiki and DokuWiki core/framework does not built in special features to support a single plugin.

You can create a link to open the Issue Details from other DokuWiki pages or from somwhere else in the w³ (e.g. http://www.fristercons.de/fcon/doku.php?id=issuetracker:issuelist&do=showcaselink&showid=166&project=fcon_project). It is not possible to get a link somehow styled within dokuwiki (e.g. strike through). That is for two reasons:

  1. The style of links within dokuwiki is defined within related css. Dokuwiki does not allow to do it differently on the fly by syntax. The core methods do not have such functionality.
  2. Links are handled by dokuwiki not by issue tracker. The DW mechanism does not check for any status or meta information. Hence dokuwiki cannot react somehow on status of anything.

Sorry. The styling you want to have is nice feature but impossible to be done with dokuwiki.

dipakc commented 11 years ago

Thanks for the response.

Instead of styling the link, will it be possible to just retrieve and display the status eg. #3 (closed). or #10 (open).

Taggic commented 11 years ago

Theoretically yes. It would be a very deep dive into the events of the core system to catch the procedure of wiki link interpretation and generation. This would cause performance impacts due to each link would have to be analyzed if it relates to the issue tracker plugin and looping through all issues until the related one is found and status to be appended to the link title. Very complex and currently far away from my experience and spare time to learn and realize such. I would give this as a late Christmas present but I'm not able to code it.

dipakc commented 11 years ago

Looks like it is too complex. Thanks anyways.

I don't know the internal of dokuwiki ...but was just wondering whether it would be easier to add the following construct.

{{issuetracker>project=project_name|product=prod_name|id = 3|display=single_issue}} 

which will generate the link with status.

Sorry for pestering you, but this enhancement will make the plugin much more usable for me.

Taggic commented 11 years ago

I'm sorry for my very late answer but I've nearly no spare time due to commercial and privat projects.

The status can be what ever you configure. How should the status be illustrated if I don't know the status values, quantity and meaning ? It would be a good help if you can share your idea about that.

Link to the related Feature Request on fcon IssueTracker: www.fristercons.de/fcon/doku.php?id=issuetracker:report&do=showcaselink&showid=177&project=fcon_project

Taggic commented 11 years ago

just released the feature. the following syntax to be used:

 {{issuetracker>project=project_name|id=3|display=single_issue}}

It will search the given issue id within the given project and display it a link looks like following:

 #id title (status)

the link will be marked as deleted in the event the issue status is equal to language defined 'issue_resolved_status'.