Optionally, you can display the bug ID, a link to the bug in the tracking system, or comment information from the bug tracking system in Static Code Analysis:
- To display the bug ID in the Static Code Analysis issues lists and issue details page, call the following method in your review_action.py script:
- set_bug_id(id)
- To display the bug ID as a link, use kwadmin to define a project property:
- kwadmin set-project-property <project> bug_tracker_schema <schema>
- For example, your schema could be
- https://bugs.example.com/project/id={0}
- The schema is used to replace {0} with id , and convert id to a hyperlink. The hyperlink is displayed in Static Code Analysis for direct access to the bug in the tracking system.
- To display citing comments in the Comment pane, call the following method in your review_action.py script:
- set_comment(comment)