Customize task information

  • 1
  • Question
  • Updated 4 years ago
Is it possible to customize the task information? I want to hide the calendar dates and only display the duration, and I want to remove the "R: " that's displayed before the resources. Can this be done through configuration, or is there an event in the API I can override?
Photo of Jaq

Jaq

  • 6 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
Unfortunately, neither; the only option is to hide or show all task information in the View > Show/Hide menu. There is no property in the API that controls what is displayed on topics and no access to the rendered topic control itself. Do you need to use the task information for compatibility with other functions? An alternative might be a custom property on a topic.
Photo of Jaq

Jaq

  • 6 Posts
  • 0 Reply Likes
I have a request to customize how task information is displayed. We want to setup a generic map, and show the duration as an example of the work required for any given project (which means the specific dates currently displayed aren't adding value). I've created custom properties that AutoCalc to do the rollup, but the display isn't as nice. Can the custom properties display be changed? E.g. set a background colour? Change the font size?
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
Not as far as I know. I once did a project where the customer needed a very clear numeric indicator on topics for discussing an analysis. I used an add-in to generate an image with a calculated value in it, then embedded the image in the topic. 
I have also used code to embed a value in preformatted topic text, keeping the original text in a custom attribute so that the value can be updated. This would interfere with export to other formats, though.
Photo of Jaq

Jaq

  • 6 Posts
  • 0 Reply Likes
What was the add-in? Did it work with exporting?
Photo of Alex Gooding

Alex Gooding, Champion

  • 872 Posts
  • 220 Reply Likes
Jaq, if you only want to show the durations for display purposes only and not for calculations, there is a workaround of sorts.

In the Marker pane you can create a new tag group with a space as its name. Then in that group create as many tags as you need that resemble the task duration in format, eg, "1 workday(s)", "2 workday(s)" etc and apply these to the tasks as appropriate.

Obviously this approach gives the illusion of task durations and won't work if you put any real durations in. It's also probably useful only if you have a limited range of durations to emulate and should be applied once you're pretty sure you don't have to change them again. It also won't work if you want to apply any other tags.

And I'm sorry, I can't think of a way to get rid of the "R" for resources.
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
Jaq, the add-in was developed for the customer's specific needs in that project. It was not sold commercially as an independent product but the technique could be used elsewhere.
Photo of Andrew Wilcox

Andrew Wilcox, Champion

  • 1033 Posts
  • 177 Reply Likes
You can edit the Resource tag name to e.g. "People" but the R remains on the topic. I tried sometime ago to change the R but failed.
Photo of James P. Devlin

James P. Devlin

  • 3 Posts
  • 0 Reply Likes
Folks, Is there a way to add a billing rate to a resource? That way it could calculate the total cost of the project automatically.