•  
     
    story #8833 show, import and manipulate links
Summary
Empty
show, import and manipulate links
Empty

Definition of artifact links

  • There is one system link nature "_is_child" that cannot be modified.
  • Site administrator can define new type nature (eg reported_in, fixed_in, covers, etc). The definition of a new nature includes:
    • a nature name eg. "reported_in"
    • a Forward label eg. "Reported in"
    • a Reverse label eg. "Contains"
    • the possibility to translate the label in all languages defined on the platform. By default falls back on english

Once defined by site admin, the natures are usable anywhere

Visualization of links nature

For "_is_child" this is used for for "parent" display (on top of artifact page, on top of artifact title) as well as in "Children" tab

For all nature used by artifact, the artifact link field evolves to show grouping by nature in addition to grouping by nature:

The fields that are shown in the "nature" tabs are fixed:

  • Project,
  • Tracker,
  • Summary (if there is a semantic defined)
  • Status actual value (not just Open/Closed) (if there is a sematic defined)
  • Last update date
  • Submitted by
  • Assigned to (if there is a semantic defined)

Define and update links

  • When one add a new link, there is a select box to choose among the available natures (there is a warning when several ids are selected, so user know that all ids will be linked with the same nature
  • When links are shown, there is an edit button that allow to change the nature of the link (it's possible to select no nature at all)
  • Change of nature is recorded

Import links

  • XML import format evolves, for artifact link field change it becomes:
<field_change type="art_link">
    <value nature="reported_in">1234</value>
    <value nature="_is_child">12</value>
    <value>42</value>
</field_change>

  • If the given nature doesn't exist on the plateform, then the import is rejected

Not covered

  • REST route

 

Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#8833
Manuel Vacelet (vaceletm)
2016-04-04 11:35
2016-02-02 14:32
8943

References
Referencing story #8833

Git commit

tuleap/tuleap/stable

First step to ArtifactLink natures management 6ce26f12ad
Admin can create new ArtifactLink natures 75e9b26e11
Merge commit 'refs/changes/17/5217/6' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD 676e1134bb
story #8833: show a tracker label before the nav bar of art_links 4c80442ae8
Refactoring: use tabs in tracker plugin config d54239b09c
Merge commit 'refs/changes/22/5222/11' of ssh://gerrit.tuleap.net:29418/tuleap into stable b1796ff394
story #8833: add new set of tabs to show artifact links by nature 24eaf5cd2b
First step to restrict AL natures usage d2248e82f5
Display link to project 9c5b513da4
Forbid update of tracker hierarchy b26fcb0fad
Forbid display of tracker hierarchy 9d6d9cc478
Do not display hierarchy menu item 179146eb7a
Projects using tracker hierarchy cannot use nature 8df95efad6
Merge commit 'refs/changes/60/5260/2' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD 79cdb19474
story #8833: disable nature tables if artlink v2 are not activated 3f82f19339
Agile dashboard service cannot be enabled in artifact links v2 context 8b918e13db
Admin can edit ArtifactLink natures cb9915a0f9
Merge commit 'refs/changes/64/5264/4' of ssh://gerrit.tuleap.net:29418/tuleap into stable 57d55279da
story #8833: display the proper label for nature tabs e3789de891
Identify system natures in the administration c1ae33cf44
Project that uses AgileDashboard cannot use artifact links v2 4725600b9e
Merge commit 'refs/changes/70/5270/5' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD 971ff5ca4f
story #8833: add a select nature box in the frontend 79cd3cecc0
Refactoring: move value saving in a dedicated object ea8aeb0f46
Keep existing nature for artifact links a9c0757533
Refactoring: remove dead code: createInitialChangeset 0fecca75b5
Do not scroll the viewport when adding artifacts 8626749379
Merge commit 'refs/changes/77/5277/10' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD 29cd0dffb4
story #8833: update the tables when adding new art_links 2742db2247
Refactoring: remove dead code 379297cc06
Save nature in database 7697114035
Refactoring: split ArtifactLinkValueSaver b9bdb80d91
Merge commit 'refs/changes/06/5306/4' of ssh://gerrit.tuleap.net:29418/tuleap into stable a60686b13e
story #8833: add an empty value option in the nature selectbox. d94f4610e8
No burndown for projects with nature 0c95428615
Fix error for live view of artifact links without nature 5cbbc02aec
Merge commit 'refs/changes/95/5295/14' of ssh://gerrit.tuleap.net:29418/tuleap into stable 6af8d657c2
story #8833: display a nature column 7f6b8febae
Merge commit 'refs/changes/04/5304/7' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD fc75bc9622
story #8833: validate nature field dec9021955
Fix rendering issues of tabs 442ff78227
Allow one to edit nature of existing links 85c4a993ec
Merge commit 'refs/changes/29/5329/9' of ssh://gerrit.tuleap.net:29418/tuleap into stable e1bbf3feea
story #8833: activate ALv2 at import d878d40346
Inherit nature configuration 430b159b01
Disable triggers administration in tracker administration b2313eae63
Artifacts from deleted trackers cannot be added in artifact links b0364c3127
Add link tab (on top of artifact page, on top of artifact title) 86c8c007fc
Hide "Add artifact" button when artifact is in creation mode d71de15bdb
Delete an artifact link nature ab5f8c7492
Merge commit 'refs/changes/35/5335/13' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD 3607983ece
story #8833: import nature for artifact links d76c1d25e0
Merge commit 'refs/changes/48/5348/10' of ssh://gerrit.tuleap.net:29418/tuleap into HEAD eb8e3f8cc5
story #8833: copy artifact with its children using nature d8395bdb56
Display nature changeset in followup a70864233f

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • I want to
    -show, import manipulate links 
    +show, import and manipulate links 
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes