GR:Gravity/Definitions/Dependency Types

From Remain Software
Jump to navigation Jump to search

Dependency Types

A Dependency Type determines the kind of relationship that is available between a Source and a Target. For example, if someone opens a "Question" in our Helpdesk which leads to an "Enhancement" then you probably want to link that Question to the new Enhancement. In order to do this we need to define a Dependency between "Question" and "Enhancement".

Let's take an example.

Q: Is it possible to export Items from Gravity
A: No this is not possible

This might prompt the person that asked the question to create an enhancement request. It would then be nice to be able to link the two together.

Thinkingman.png


Connecting an Enhancement to a Question

Right click the Question Type and select Connect from the context menu:


Gr connect.png


This will open a wizard that enables you to either re-use and existing type, or create a new type. In the example below we want to make a dependency that connects Questions to Enhancements.


Gr wizarddeptype.png


(1) Dependency Type
If you want to re-use an existing dependency type you can do so by selecting one from the drop down box. Doing so will disable all input fields except (7), the Target.
(2) Name
Defines the "Source to Target" name for the dependency. In our example, the Question led to the Enhancement so a good choice is Led to. However, this is very specific. An alternative could be See Also.
(3) Reverse
Defines the "Target to Source" name for the dependency. The Enhancement was created from the Question therefore this would make a good "Reverse".
(4) Description
A short description of the dependency if at all needed.
(5) Cardinality
Defines the how many to how many relationship. For example, a project can contain many tasks but a task can only be assigned to one project. This is the one to many or 1-* cardinality. In our case, many Issues can be connected to many issues so this could be a many to many cardinality *-*.
(6) Source
This is the type that acts as the source or parent of the relationship. It cannot be changed.
(7) Target
Select a type that is the target of this connection. In our case this is the Enhancement.
(8) Icon
Choose an icon to represent this connection in the GUI.


After you press Finish your users are enabled to connect items of the type Enhancement to items of the type Question.


Gr wizarddeptyperesult.png