atlassian-python-api 3.41.12__tar.gz → 3.41.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. {atlassian_python_api-3.41.12/atlassian_python_api.egg-info → atlassian_python_api-3.41.13}/PKG-INFO +1 -1
  2. atlassian_python_api-3.41.13/atlassian/VERSION +1 -0
  3. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bamboo.py +28 -0
  4. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/confluence.py +45 -21
  5. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/jira.py +58 -3
  6. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13/atlassian_python_api.egg-info}/PKG-INFO +1 -1
  7. atlassian_python_api-3.41.12/atlassian/VERSION +0 -1
  8. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/LICENSE +0 -0
  9. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/MANIFEST.in +0 -0
  10. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/README.rst +0 -0
  11. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/__init__.py +0 -0
  12. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/__init__.py +0 -0
  13. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/base.py +0 -0
  14. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/__init__.py +0 -0
  15. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/base.py +0 -0
  16. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/__init__.py +0 -0
  17. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/builds.py +0 -0
  18. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/comments.py +0 -0
  19. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/common/users.py +0 -0
  20. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/__init__.py +0 -0
  21. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/branchRestrictions.py +0 -0
  22. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/commits.py +0 -0
  23. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/defaultReviewers.py +0 -0
  24. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py +0 -0
  25. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/diffstat.py +0 -0
  26. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/groupPermissions.py +0 -0
  27. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/hooks.py +0 -0
  28. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/issues.py +0 -0
  29. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/pipelines.py +0 -0
  30. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/pullRequests.py +0 -0
  31. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/refs.py +0 -0
  32. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/repositories/repositoryVariables.py +0 -0
  33. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/__init__.py +0 -0
  34. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/members.py +0 -0
  35. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/permissions.py +0 -0
  36. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/cloud/workspaces/projects.py +0 -0
  37. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/__init__.py +0 -0
  38. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/base.py +0 -0
  39. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/common/__init__.py +0 -0
  40. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/common/permissions.py +0 -0
  41. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/globalPermissions.py +0 -0
  42. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/projects/__init__.py +0 -0
  43. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/bitbucket/server/projects/repos/__init__.py +0 -0
  44. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/cloud_admin.py +0 -0
  45. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/crowd.py +0 -0
  46. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/errors.py +0 -0
  47. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/insight.py +0 -0
  48. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/marketplace.py +0 -0
  49. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/portfolio.py +0 -0
  50. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/request_utils.py +0 -0
  51. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/rest_client.py +0 -0
  52. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/service_desk.py +0 -0
  53. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/statuspage.py +0 -0
  54. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/utils.py +0 -0
  55. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian/xray.py +0 -0
  56. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/SOURCES.txt +0 -0
  57. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/dependency_links.txt +0 -0
  58. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/not-zip-safe +0 -0
  59. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/requires.txt +0 -0
  60. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/atlassian_python_api.egg-info/top_level.txt +0 -0
  61. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/pyproject.toml +0 -0
  62. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/requirements.txt +0 -0
  63. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/setup.cfg +0 -0
  64. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/setup.py +0 -0
  65. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__init__.py +0 -0
  66. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  67. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/mockup.cpython-311.pyc +0 -0
  68. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.2.0.pyc +0 -0
  69. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.2.1.pyc +0 -0
  70. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.3.1.pyc +0 -0
  71. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.4.0.pyc +0 -0
  72. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_base.cpython-311-pytest-7.4.2.pyc +0 -0
  73. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  74. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  75. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  76. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  77. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_cloud_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  78. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.0.pyc +0 -0
  79. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.2.1.pyc +0 -0
  80. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.3.1.pyc +0 -0
  81. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.0.pyc +0 -0
  82. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server.cpython-311-pytest-7.4.2.pyc +0 -0
  83. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.0.pyc +0 -0
  84. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.2.1.pyc +0 -0
  85. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.3.1.pyc +0 -0
  86. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.0.pyc +0 -0
  87. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_bitbucket_server_oo.cpython-311-pytest-7.4.2.pyc +0 -0
  88. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.0.pyc +0 -0
  89. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.2.1.pyc +0 -0
  90. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.3.1.pyc +0 -0
  91. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.0.pyc +0 -0
  92. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_advanced_mode.cpython-311-pytest-7.4.2.pyc +0 -0
  93. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.0.pyc +0 -0
  94. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.2.1.pyc +0 -0
  95. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.3.1.pyc +0 -0
  96. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.0.pyc +0 -0
  97. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_confluence_attach.cpython-311-pytest-7.4.2.pyc +0 -0
  98. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.0.pyc +0 -0
  99. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.2.1.pyc +0 -0
  100. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.3.1.pyc +0 -0
  101. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.0.pyc +0 -0
  102. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_jira.cpython-311-pytest-7.4.2.pyc +0 -0
  103. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.0.pyc +0 -0
  104. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.2.1.pyc +0 -0
  105. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.3.1.pyc +0 -0
  106. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.0.pyc +0 -0
  107. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/__pycache__/test_servicedesk.cpython-311-pytest-7.4.2.pyc +0 -0
  108. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/mockup.py +0 -0
  109. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/GET +0 -0
  110. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/TestRepositoryCreated/POST +0 -0
  111. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/GET +0 -0
  112. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/DELETE +0 -0
  113. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/GET +0 -0
  114. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/17203842/PUT +0 -0
  115. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/branch-restrictions/GET +0 -0
  116. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/DELETE +0 -0
  117. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/DefaultReviewer1Uuid/GET +0 -0
  118. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/default-reviewers/GET +0 -0
  119. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/DELETE +0 -0
  120. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/GET +0 -0
  121. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/3/PUT +0 -0
  122. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/GET +0 -0
  123. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/issues/POST +0 -0
  124. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/GET +0 -0
  125. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/POST +0 -0
  126. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/GET +0 -0
  127. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/GET +0 -0
  128. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep1Uuid}/GET +0 -0
  129. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/GET +0 -0
  130. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/steps/{PipelineStep2Uuid}/log/GET +0 -0
  131. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pipelines/{PipelineUuid}/stopPipeline/POST +0 -0
  132. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/GET +0 -0
  133. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/DELETE +0 -0
  134. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/approve/POST +0 -0
  135. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/GET +0 -0
  136. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/comments/POST +0 -0
  137. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/commits/GET +0 -0
  138. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/decline/POST +0 -0
  139. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/merge/POST +0 -0
  140. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/DELETE +0 -0
  141. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/request-changes/POST +0 -0
  142. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/statuses/GET +0 -0
  143. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/DELETE +0 -0
  144. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/123456/PUT +0 -0
  145. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/GET +0 -0
  146. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/1/tasks/POST +0 -0
  147. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/25/GET +0 -0
  148. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/GET +0 -0
  149. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/repositories/TestWorkspace1/testrepository1/pullrequests/POST +0 -0
  150. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/GET +0 -0
  151. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace1/GET +0 -0
  152. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace2/GET +0 -0
  153. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/cloud/2.0/workspaces/TestWorkspace3/GET +0 -0
  154. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/DELETE +0 -0
  155. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/GET +0 -0
  156. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/groups/none/GET +0 -0
  157. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/DELETE +0 -0
  158. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/GET +0 -0
  159. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/admin/permissions/users/none/GET +0 -0
  160. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/GET +0 -0
  161. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/GET +0 -0
  162. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/PUT +0 -0
  163. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/DELETE +0 -0
  164. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/GET +0 -0
  165. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/groups/none/GET +0 -0
  166. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/DELETE +0 -0
  167. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/GET +0 -0
  168. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/permissions/users/none/GET +0 -0
  169. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/GET +0 -0
  170. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/GET +0 -0
  171. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/PUT +0 -0
  172. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/archive/GET +0 -0
  173. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/contributing/GET +0 -0
  174. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/GET +0 -0
  175. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/default-branch/PUT +0 -0
  176. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/forks/GET +0 -0
  177. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/license/GET +0 -0
  178. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/DELETE +0 -0
  179. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/GET +0 -0
  180. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/groups/none/GET +0 -0
  181. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/DELETE +0 -0
  182. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/GET +0 -0
  183. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/permissions/users/none/GET +0 -0
  184. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/readme/GET +0 -0
  185. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/related/GET +0 -0
  186. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/DELETE +0 -0
  187. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/GET +0 -0
  188. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/3/PUT +0 -0
  189. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/GET +0 -0
  190. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/bitbucket/server/rest/api/1.0/projects/PRJ/repos/my-repo1-slug/webhooks/POST +0 -0
  191. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/agile/1.0/epic/BAR-22/issue/GET +0 -0
  192. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/agile/1.0/epic/none/issue/GET +0 -0
  193. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/comment/list/POST +0 -0
  194. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/GET +0 -0
  195. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/10000/GET +0 -0
  196. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/comment/GET +0 -0
  197. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/DELETE +0 -0
  198. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/GET +0 -0
  199. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar1/PUT +0 -0
  200. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/Bar2New/PUT +0 -0
  201. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/FOO-123/properties/GET +0 -0
  202. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/POST +0 -0
  203. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/jira/rest/api/2/issue/REGEX-123/file.txt +0 -0
  204. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/customer/POST +0 -0
  205. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/GET +0 -0
  206. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/POST +0 -0
  207. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/DELETE +0 -0
  208. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/GET +0 -0
  209. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/property/GET +0 -0
  210. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/DELETE +0 -0
  211. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/GET +0 -0
  212. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/organization/{organizationId}/user/POST +0 -0
  213. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/DELETE +0 -0
  214. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/GET +0 -0
  215. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer/POST +0 -0
  216. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/DELETE +0 -0
  217. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/GET +0 -0
  218. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/responses/servicedesk/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization/POST +0 -0
  219. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_base.py +0 -0
  220. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_bitbucket_cloud_oo.py +0 -0
  221. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_bitbucket_server.py +0 -0
  222. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_bitbucket_server_oo.py +0 -0
  223. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_confluence_advanced_mode.py +0 -0
  224. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_confluence_attach.py +0 -0
  225. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_jira.py +0 -0
  226. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tests/test_servicedesk.py +0 -0
  227. {atlassian_python_api-3.41.12 → atlassian_python_api-3.41.13}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.12
3
+ Version: 3.41.13
4
4
  Summary: Python Atlassian REST API Wrapper
5
5
  Home-page: https://github.com/atlassian-api/atlassian-python-api
6
6
  Download-URL: https://github.com/atlassian-api/atlassian-python-api
@@ -0,0 +1 @@
1
+ 3.41.13
@@ -1286,6 +1286,34 @@ class Bamboo(AtlassianRestAPI):
1286
1286
  url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
1287
1287
  return self.post(url, files=files, headers=self.no_check_headers)
1288
1288
 
1289
+ def disable_plugin(self, plugin_key):
1290
+ """
1291
+ Disable a plugin
1292
+ :param plugin_key:
1293
+ :return:
1294
+ """
1295
+ app_headers = {
1296
+ "X-Atlassian-Token": "nocheck",
1297
+ "Content-Type": "application/vnd.atl.plugins+json",
1298
+ }
1299
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
1300
+ data = {"status": "disabled"}
1301
+ return self.put(url, data=data, headers=app_headers)
1302
+
1303
+ def enable_plugin(self, plugin_key):
1304
+ """
1305
+ Enable a plugin
1306
+ :param plugin_key:
1307
+ :return:
1308
+ """
1309
+ app_headers = {
1310
+ "X-Atlassian-Token": "nocheck",
1311
+ "Content-Type": "application/vnd.atl.plugins+json",
1312
+ }
1313
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
1314
+ data = {"status": "enabled"}
1315
+ return self.put(url, data=data, headers=app_headers)
1316
+
1289
1317
  def delete_plugin(self, plugin_key):
1290
1318
  """
1291
1319
  Delete plugin
@@ -506,27 +506,20 @@ class Confluence(AtlassianRestAPI):
506
506
 
507
507
  return response
508
508
 
509
- def get_draft_page_by_id(self, page_id, status="draft"):
509
+ def get_draft_page_by_id(self, page_id, status="draft", expand=None):
510
510
  """
511
- Provide content by id with status = draft
512
- :param page_id:
513
- :param status:
511
+ Gets content by id with status = draft
512
+ :param page_id: Content ID
513
+ :param status: (str) list of content statuses to filter results on. Default value: [draft]
514
+ :param expand: OPTIONAL: Default value: history,space,version
515
+ We can also specify some extensions such as extensions.inlineProperties
516
+ (for getting inline comment-specific properties) or extensions. Resolution
517
+ for the resolution status of each comment in the results
514
518
  :return:
515
519
  """
516
- url = "rest/api/content/{page_id}?status={status}".format(page_id=page_id, status=status)
517
-
518
- try:
519
- response = self.get(url)
520
- except HTTPError as e:
521
- if e.response.status_code == 404:
522
- raise ApiPermissionError(
523
- "The calling user does not have permission to view the content",
524
- reason=e,
525
- )
526
-
527
- raise
528
-
529
- return response
520
+ # Version not passed since draft versions don't match the page and
521
+ # operate differently between different collaborative modes
522
+ return self.get_page_by_id(page_id=page_id, expand=expand, status=status)
530
523
 
531
524
  def get_all_pages_by_label(self, label, start=0, limit=50):
532
525
  """
@@ -1322,17 +1315,20 @@ class Confluence(AtlassianRestAPI):
1322
1315
  comment=comment,
1323
1316
  )
1324
1317
 
1325
- def download_attachments_from_page(self, page_id, path=None):
1318
+ def download_attachments_from_page(self, page_id, path=None, start=0, limit=50):
1326
1319
  """
1327
1320
  Downloads all attachments from a page
1328
1321
  :param page_id:
1329
- :param path: path to directory where attachments will be saved. If None, current working directory will be used.
1322
+ :param path: OPTIONAL: path to directory where attachments will be saved. If None, current working directory will be used.
1323
+ :param start: OPTIONAL: The start point of the collection to return. Default: None (0).
1324
+ :param limit: OPTIONAL: The limit of the number of attachments to return, this may be restricted by
1325
+ fixed system limits. Default: 50
1330
1326
  :return info message: number of saved attachments + path to directory where attachments were saved:
1331
1327
  """
1332
1328
  if path is None:
1333
1329
  path = os.getcwd()
1334
1330
  try:
1335
- attachments = self.get_attachments_from_content(page_id=page_id)["results"]
1331
+ attachments = self.get_attachments_from_content(page_id=page_id, start=start, limit=limit)["results"]
1336
1332
  if not attachments:
1337
1333
  return "No attachments found"
1338
1334
  for attachment in attachments:
@@ -2727,6 +2723,34 @@ class Confluence(AtlassianRestAPI):
2727
2723
  url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
2728
2724
  return self.post(url, files=files, headers=self.no_check_headers)
2729
2725
 
2726
+ def disable_plugin(self, plugin_key):
2727
+ """
2728
+ Disable a plugin
2729
+ :param plugin_key:
2730
+ :return:
2731
+ """
2732
+ app_headers = {
2733
+ "X-Atlassian-Token": "nocheck",
2734
+ "Content-Type": "application/vnd.atl.plugins+json",
2735
+ }
2736
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
2737
+ data = {"status": "disabled"}
2738
+ return self.put(url, data=data, headers=app_headers)
2739
+
2740
+ def enable_plugin(self, plugin_key):
2741
+ """
2742
+ Enable a plugin
2743
+ :param plugin_key:
2744
+ :return:
2745
+ """
2746
+ app_headers = {
2747
+ "X-Atlassian-Token": "nocheck",
2748
+ "Content-Type": "application/vnd.atl.plugins+json",
2749
+ }
2750
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
2751
+ data = {"status": "enabled"}
2752
+ return self.put(url, data=data, headers=app_headers)
2753
+
2730
2754
  def delete_plugin(self, plugin_key):
2731
2755
  """
2732
2756
  Delete plugin
@@ -1221,13 +1221,13 @@ class Jira(AtlassianRestAPI):
1221
1221
  :return:
1222
1222
  """
1223
1223
  base_url = self.resource_url("issue")
1224
- url = "{base_url}/{issue_key}?expand=changelog".format(base_url=base_url, issue_key=issue_key)
1224
+ url = "{base_url}/{issue_key}/changelog".format(base_url=base_url, issue_key=issue_key)
1225
1225
  params = {}
1226
1226
  if start:
1227
1227
  params["startAt"] = start
1228
1228
  if limit:
1229
1229
  params["maxResults"] = limit
1230
- return (self.get(url) or {}).get("changelog", params)
1230
+ return self.get(url, params=params)
1231
1231
 
1232
1232
  def issue_add_json_worklog(self, key, worklog):
1233
1233
  """
@@ -1320,7 +1320,7 @@ class Jira(AtlassianRestAPI):
1320
1320
 
1321
1321
  def bulk_update_issue_field(self, key_list, fields="*all"):
1322
1322
  """
1323
- :param key_list=list of issues with common filed to be updated
1323
+ :param key_list: list of issues with common filed to be updated
1324
1324
  :param fields: common fields to be updated
1325
1325
  return Boolean True/False
1326
1326
  """
@@ -1336,6 +1336,33 @@ class Jira(AtlassianRestAPI):
1336
1336
  return False
1337
1337
  return True
1338
1338
 
1339
+ def issue_field_value_append(self, issue_id_or_key, field, value, notify_users=True):
1340
+ """
1341
+ Add value to a multiple value field
1342
+
1343
+ :param issue_id_or_key: str Issue id or issue key
1344
+ :param field: str Field key ("customfield_10000")
1345
+ :param value: str A value which need to append (use python value types)
1346
+ :param notify_users: bool OPTIONAL if True, use project's default notification scheme to notify users via email.
1347
+ if False, do not send any email notifications. (only works with admin privilege)
1348
+ """
1349
+ base_url = self.resource_url("issue")
1350
+ params = {"notifyUsers": True if notify_users else False}
1351
+ current_value = self.issue_field_value(key=issue_id_or_key, field=field)
1352
+
1353
+ if current_value:
1354
+ new_value = current_value + [value]
1355
+ else:
1356
+ new_value = [value]
1357
+
1358
+ fields = {"{}".format(field): new_value}
1359
+
1360
+ return self.put(
1361
+ "{base_url}/{key}".format(base_url=base_url, key=issue_id_or_key),
1362
+ data={"fields": fields},
1363
+ params=params,
1364
+ )
1365
+
1339
1366
  def get_issue_labels(self, issue_key):
1340
1367
  """
1341
1368
  Get issue labels.
@@ -3639,6 +3666,34 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
3639
3666
  data = {"rawLicense": raw_license}
3640
3667
  return self.put(url, data=data, headers=app_headers)
3641
3668
 
3669
+ def disable_plugin(self, plugin_key):
3670
+ """
3671
+ Disable a plugin
3672
+ :param plugin_key:
3673
+ :return:
3674
+ """
3675
+ app_headers = {
3676
+ "X-Atlassian-Token": "nocheck",
3677
+ "Content-Type": "application/vnd.atl.plugins+json",
3678
+ }
3679
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
3680
+ data = {"status": "disabled"}
3681
+ return self.put(url, data=data, headers=app_headers)
3682
+
3683
+ def enable_plugin(self, plugin_key):
3684
+ """
3685
+ Enable a plugin
3686
+ :param plugin_key:
3687
+ :return:
3688
+ """
3689
+ app_headers = {
3690
+ "X-Atlassian-Token": "nocheck",
3691
+ "Content-Type": "application/vnd.atl.plugins+json",
3692
+ }
3693
+ url = "rest/plugins/1.0/{plugin_key}-key".format(plugin_key=plugin_key)
3694
+ data = {"status": "enabled"}
3695
+ return self.put(url, data=data, headers=app_headers)
3696
+
3642
3697
  def get_all_permissionschemes(self, expand=None):
3643
3698
  """
3644
3699
  Returns a list of all permission schemes.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atlassian-python-api
3
- Version: 3.41.12
3
+ Version: 3.41.13
4
4
  Summary: Python Atlassian REST API Wrapper
5
5
  Home-page: https://github.com/atlassian-api/atlassian-python-api
6
6
  Download-URL: https://github.com/atlassian-api/atlassian-python-api
@@ -1 +0,0 @@
1
- 3.41.12