Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once you have created a WLA and it appears in the list, the following operations are possible:

OperationDescriptionRemarks
Image Modified
Assignments

Depending on the type of WLA ("ACTIVITY TYPE" or "PROJECT"), here you can create/edit the assignments (relations) of a WLA to either activity types or projects. For details, see below.

Image Modified
EditEdit the WLA. For details, see below.
Image Modified
DeleteYou can delete a WLA if is is not used (has no assignments and no work logs with this WLA exist). If it is no longer possible to delete a WLA, you can still deactivate it (see below).

Create & Edit WLA

To create a new WLA, click the respective button on top of the screen:

...

For the Field Type DROPDOWN, there are also additional and different options, depending on your choice for the data source:

 


FieldDescriptionRemarks
Name (Internal)An internal name for your purposes.
 

Label (Screen)Name like it will appear on the "Log Work" screen.
 

Mapping IDIf you are connecting to an extrenal system to retrieve data for your WLA, you can use the external ID as mapping ID for the WLA (otherwise, the external system would need to use the ID of the WLA).
 

Field TypeInput text or dropdown.

Dropdowns have two different ways to get populated with data (see "Data Source").

Note

Can't be changed later on.

RegEx (Field Check)A regular expression that enforces a defined format for the user's input.Not applicable to dropdowns.
JNDI

If you want to manage dropdown values dynamically via a database query, you need to define your JNDI here. See http://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interface and below.

Here, you just enter the name of your JNDI.

Only applicable to dropdowns where dropdown values should be dynamically retrieved from a database.
SQL QueryThe query used to dynamically retrieve dropdown data from an (external) database.Only applicable to dropdowns.
WLA Type

There are two different types of WLA that distinguish as follows:

  • ACTIVITY_TYPE: This type is related to one or more activity types. It only appears if in the "Log Work" mask, if one of the activity type assigned is selected by the user.
  • PROJECT: This type is related to one or more projects. It only appears in the "Log Work" mask for these projects.

Tip

It is not possible to create a WLA that has relations to activity types and projects at the same time. However, for certain use cases, it is possible to create a WLA with type "PROJECT" and to create a real dependency from activity types. This requires the "Depend on Activity Type" checkbox being checked. For more information, see below.

For details, see below.

Note

Can't be changed later on.

AssignmentsThe activity types or projects (depending on WLA Type) this WLA is assigned to. Assignments define if (under which conditions) the WLA appears on the "Log Work" mask. For more information, see below.
 

Order

If you define multiple WLA and multiple WLA might appear on the "Log Work" dialogue, you can define a sorting order for all WLA here. Sorting applies across all WLA, regardless of their type.

Info

All WLA will always display below the "Activity Type" dropdown and above the "Description" textarea. The order applies within different WLA on the same screen.

Numerical, like 10, 20, 30
ActiveIf the WLA is currently active.It is not possible to delete a WLA that is in use. You can only deactivate it. If you deactivate a WLA, all data is kept, but the WLA is no longer available for new work logs (when editing a work log, you can either not save or need to clear/delete the data of this WLA).
MandatoryIf the WLA is a mandatoy field in the "Log Work" mask.
 

Global (All)If the WLA is globally assigned to all activity types or all projects (depending on WLA Type). See below.

If you choose this option, it is not required to define individual assignments.

Tip

A global assignment automatically includes future projects or activity types that do not exist at this moment.

Depend on Activity Type

By default, a WLA Type "PROJECT" is directly displayed in the "Log Work" mask for all projects this WLA has been assigned to. "Depend on Activity Type" changes this behaviour and the WLA will only be displayed (in the "Log Work" mask for all projects this WLA has been assigned to) after the user has selected (any) activity type.

Tip

Usually, this setting only changes the field's display behaviour. However, if you combine this setting with field type "Dropdown" and use a dynamic database query to populate the dropdown, you could create a real dependency of this WLA from project/s and activity type/s at the same time. See below.

Only applicable for WLA Type "PROJECT".

When you edit a WLA, the following fields can't be changed any longer:

...

Note

You can also work with a stored procedure. Keep in mind that in this case, ictime does not have any control over the kind queries that are executed, so it is up to you to ensure that you are not changing or deleting data.

...


A few parameters available within a JIRA issue or from ictime can be used to parametrize your query:

FieldDescriptionRemarks

projectKey

Current JIRA project key (retrieved via the JIRA issue).
 

projectIdCurrent JIRA project ID (retrieved via the JIRA issue).
 

userKeyCurrent JIRA user.
 

activityTypeIdActivity type currently selected.Available after the user has selected an activity type.
activityTypeExtMapIdExternal Mapping Id of the activity type currently selected.Available after the user has selected an activity type.
issueIdIssue ID.Available starting with ictime-5.2.15
issueKeyIssue key.Available starting with ictime-5.2.15

Example 1: Filter by Current Project

...

<Resource name="jdbc/TestName"
  auth="Container" type="javax.sql.DataSource"
  username="dbUsername"
  password="dbPassword"
  driverClassName="com.mysql.jdbc.Driver"
  url="jdbc:mysql://hostname:3306/databaseName"
/>
FieldDescriptionRemarks
Resource nameindividual name ("jdbc/" part is mandatory and must go first)
Info

This value needs to be entered in the WLA mask in the "JNDI" field.

usernameuser name for this database
 

passwordpassword for this database
 

diverClassNameclass name for the driver of your database (example shows MySQL)
 

urlURL to your database
 

There might be more parameters available (refer to the specification of your servlet container), you might set them according to your needs.

...

Tip

If such a non-valid field is empty (no content or no selection of a value), there will be no error, but on saving, the field will simply be deleted.

...


Content Changes (Dropdown Only)

...

If you move issues in JIRA between different projects that have a different WLA configuration, and these issues have work logs with WLA data, these work logs are no longer consistent, because they contain WLA data from the original project that does not match with the WLA configuration of the target project. As a result, reports might generate incorrect data for accounting purposes. The same problems also affects Activity Types, Rounding Rules and Teams/Price Lists. For all known cases, this problem is addressed with a specific tool to fix such work logs, see Fix Work Logs (Warnings).