Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EN-4286: Jira add comment lego #377

Merged

Conversation

sagar-salvi-unskript
Copy link
Collaborator

@sagar-salvi-unskript sagar-salvi-unskript commented Mar 22, 2023

Description EN-4286

Description

Lego to add Jira comment

Testing

Add Jira comment

============================================================ test session starts ============================================================
platform linux -- Python 3.7.13, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/sagar/Unskript/unskript, configfile: setup.cfg
plugins: typeguard-2.13.3, anyio-3.5.0, cov-3.0.0
collected 1 item                                                                                                                            

test_jira_add_comment.py 11702
.

Add restricted jira comment

============================================================ test session starts ============================================================
platform linux -- Python 3.7.13, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/sagar/Unskript/unskript, configfile: setup.cfg
plugins: typeguard-2.13.3, anyio-3.5.0, cov-3.0.0
collected 2 items                                                                                                                           

test_jira_add_comment.py 11703
.Error while executing: JiraError HTTP 400 url: https://unskript.atlassian.net/rest/api/2/issue/PLAY-2/comment
  text: You are currently not a member of the project role: Administrators.
  
  response headers = {'Date': 'Wed, 22 Mar 2023 17:54:44 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '0b8f2bd3da063452b6dae9a7c456ea14', 'X-Aaccountid': '61ad96f22278e7006b64bbee', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': 'af973591eec95b27', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Transfer-Encoding': 'chunked'}
  response text = {"errorMessages":[],"errors":{"commentLevel":"You are currently not a member of the project role: Administrators."}}
Execution Failed: Error: JiraError HTTP 400 url: https://unskript.atlassian.net/rest/api/2/issue/PLAY-2/comment
  text: You are currently not a member of the project role: Administrators.
  
  response headers = {'Date': 'Wed, 22 Mar 2023 17:54:44 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '0b8f2bd3da063452b6dae9a7c456ea14', 'X-Aaccountid': '61ad96f22278e7006b64bbee', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': 'af973591eec95b27', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Transfer-Encoding': 'chunked'}
  response text = {"errorMessages":[],"errors":{"commentLevel":"You are currently not a member of the project role: Administrators."}}
  Task Parameters: {'issue_id': 'PLAY-2', 'comment': 'Test Comment', 'visibility': {'type': 'role', 'value': 'Administrators'}}

)
is_internal: Optional[bool] = Field(
False,
title='Is Internal',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the title Internal

@sagar-salvi-unskript sagar-salvi-unskript force-pushed the feature/EN-4286-ssalvi-add-jira-comment-lego branch from 48c4f48 to 51e82fc Compare March 22, 2023 19:24
@amit-chandak-unskript amit-chandak-unskript merged commit 2b5f959 into master Mar 22, 2023
@amit-chandak-unskript amit-chandak-unskript deleted the feature/EN-4286-ssalvi-add-jira-comment-lego branch March 22, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants