//  $0 - The issue tracker
//  $1 - The issue type name (the label)

artefact issue {
    label $1;
    text md/mantis/issue.md;
}

activity technicalPreview {
    label "do technical preview of " + $1;
    brief "This activity is to check and preview entered issue. There should be also a first effort estimation.";
    tool $0;
    set issue(New,Acknowledged)[info is formally ok];
    set issue(New,Feedback)[info is missing];
    set issue(New,Closed)[duplicate];
    text md/mantis/technicalPreview.md;
}

activity effortReview {
    label "do effort review of '" + $1 + "'";
    brief "This activity is to decide, if the issue shall be considered to be done.";
    tool $0;
    set issue(Acknowledged,Confirmed)[spend the estimated effort];
    set issue(Acknowledged,Closed)[to much effort];
    text md/mantis/effortReview.md;
}

activity planning {
    label "do planning of '" + $1 + "'";
    brief "This activity is during team planning, when an issue is assigned to a person";    
    tool $0;
    set issue(Confirmed,Assigned);
    text md/mantis/planning.md;
}

activity reportIssueSolved {
    label "report '" + $1 + "' solved";
    tool $0;
    set issue(Assigned,Resolved);
    text md/mantis/reportIssueSolved.md;
}

activity createIssue {
    label "create  '" + $1 + "'";
    tool $0;
    set issue(null,New);
    text md/mantis/guidelines.md; 
 }

activity issueTest {
    label "'" + $1 + "' test";    
    tool $0;
    set issue(Resolved,Closed)[issue is solved];
    set issue(Resolved,Assigned)[issue is not solved];
    text md/mantis/issueTest.md;
}

activity feedback {
    label "give feedback for '" + $1 + "'";    
    tool $0;
    set issue(Feedback,Closed)[no additional info];
    set issue(Feedback,New)[new info assigned];
    text md/mantis/getFeedback.md;
}