MCPcopy
hub / github.com/sooperset/mcp-atlassian / create

Method create

tests/utils/factories.py:10–30  ·  view source on GitHub ↗

Create a Jira issue with default values.

(key: str = "TEST-123", **overrides)

Source from the content-addressed store, hash-verified

8
9 @staticmethod
10 def create(key: str = "TEST-123", **overrides) -> dict[str, Any]:
11 """Create a Jira issue with default values."""
12 defaults = {
13 "id": "12345",
14 "key": key,
15 "self": f"https://test.atlassian.net/rest/api/3/issue/{key}",
16 "fields": {
17 "summary": "Test Issue Summary",
18 "description": "Test issue description",
19 "status": {"name": "Open", "id": "1", "statusCategory": {"key": "new"}},
20 "issuetype": {"name": "Task", "id": "10001"},
21 "priority": {"name": "Medium", "id": "3"},
22 "assignee": {
23 "displayName": "Test User",
24 "emailAddress": "test@example.com",
25 },
26 "created": "2023-01-01T12:00:00.000+0000",
27 "updated": "2023-01-01T12:00:00.000+0000",
28 },
29 }
30 return deep_merge(defaults, overrides)
31
32 @staticmethod
33 def create_minimal(key: str = "TEST-123") -> dict[str, Any]:

Calls 1

deep_mergeFunction · 0.85