Work Item Web Links
IssueRemoteLinksWidget
- class IssueRemoteLinksWidget
Bases:
textual.containers.VerticalScrollA container for adding and updating the list of remote links (aka. web links) associated to a work item.
This widget is responsible for the following:
opening the modal screen that allows users to add new links.
fetching the list of remote links associated to the work item.
adding a new link to the work item.
deleting a link when the message
jiratui.widgets.remote_links.links.IssueRemoteLinkCollapsible.Deletedis posted
See Also:
Initialization
Construct a scrollable container.
- Parameters:
children – Child widgets.
name – The name of the widget.
id – The ID of the widget in the DOM.
classes – The CSS classes for the widget.
disabled – Whether the widget is disabled or not.
can_focus – Can this container be focused?
can_focus_children – Can this container’s children be focused?
can_maximized – Allow this container to maximize? None to use default logic.,
- on_issue_remote_link_collapsible_deleted(message: jiratui.widgets.remote_links.links.IssueRemoteLinkCollapsible) None
Schedules a task to delete a link.
- async action_add_remote_link() None
Handles the event to open a pop-up screen to add a remote (web) link to a work item.
- Returns:
None.
- add_link(data: dict | None = None) None
Processes the callback form the modal screen and adds the link to the work item.
- Parameters:
data – the data related to the link we need to add.
- Returns:
None
- async create_link(data: dict) None
Creates the actual link for the work item and updates the list of links that are displayed for the item.
- Parameters:
data – the data related to the link we need to add. Expects link_url and link_title.
- Returns:
None
IssueRemoteLinkCollapsible
- class IssueRemoteLinkCollapsible(*args, **kwargs)
Bases:
textual.widgets.CollapsibleA collapsible to show a remote link associated to a work item.
The widget posts the message
jiratui.widgets.remote_links.links.IssueRemoteLinkCollapsible.Deletedwhen a link is deleted.See Also:
Initialization
Initialize a Collapsible widget.
- Parameters:
children – Contents that will be collapsed/expanded.
title – Title of the collapsed/expanded contents.
collapsed – Default status of the contents.
collapsed_symbol – Collapsed symbol before the title.
expanded_symbol – Expanded symbol before the title.
name – The name of the collapsible.
id – The ID of the collapsible in the DOM.
classes – The CSS classes of the collapsible.
disabled – Whether the collapsible is disabled or not.