General¶
Converter¶
Utils¶
-
clickup_to_jira.utils.get_item_from_user_input(name, selection_list, allow_none=False)[source]¶ Get proper item from list of items from user input.
Scripts¶
migrate_to_jira¶
Handlers¶
ClickUp¶
-
class
clickup_to_jira.handlers.clickup.ClickUpHandler(token: str, api_url: str = 'https://api.clickup.com/api/v1/', cache: bool = True, debug: bool = False, user_agent: str = 'pyclickup/0.1.4')[source]¶ Class responsible for retrieving info from ClickUp
-
get_click_up_tickets()[source]¶ Get all ClickUp tickets.
- Returns
The list of tickets
- Return type
list(Ticket)
-
JIRA¶
-
class
clickup_to_jira.handlers.jira.JIRAHandler(server=None, options=None, basic_auth=None, oauth=None, jwt=None, kerberos=False, kerberos_options=None, validate=False, get_server_info=True, async_=False, async_workers=5, logging=True, max_retries=3, proxies=None, timeout=None, auth=None)[source]¶ Class responsible for adding Ticket to JIRA.
-
add_comments(issue, ticket)[source]¶ Add comments to JIRA Issue.
- Parameters
issue (jira.issue) – The issue to add comments to
ticket (Ticket) – The ticket to read comments from
-
assign_issue(issue, assignee)[source]¶ Assign an issue to a user.
None will set it to unassigned. -1 will set it to Automatic.
-
assign_issue_to_user(issue, ticket)[source]¶ Assign JIRA issue to a user.
- Parameters
issue (jira.issue) – The JIRA issue
ticket (Ticket) – The Ticket to retrieve the assignee from
-
create_base_jira_issue(ticket, project)[source]¶ Create a JIRA issue given the ticket and the JIRA project.
- Parameters
ticket (Ticket) – The ticket to create to JIRA
project (str) – The project name to add the ticket to
- Returns
The JIRA Issue
- Return type
Jira.issue
-
create_jira_issue(ticket, project)[source]¶ Create a JIRA issue.
- Parameters
ticket (Ticket) – The ticket to create
project (str) – The project name
- Returns
The new ticket
- Return type
jira.issue
-
create_type_mappings(tickets)[source]¶ Create mappings between ClickUp labels and Jira Ticket types.
-
search_users(user, startAt=0, maxResults=50, includeActive=True, includeInactive=False)[source]¶ Get a list of user Resources that match the specified search string.
- Parameters
user (str) – a string to match usernames, name or email against.
startAt (int) – index of the first user to return.
maxResults (int) – maximum number of users to return. If maxResults evaluates as False, it will try to get all items in batches.
includeActive (bool) – If true, then active users are included in the results.
includeInactive (bool) – If true, then inactive users are included in the results.
-