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
[Marketplace Contribution] Atlassian Jira - Content Pack Update #29838
[Marketplace Contribution] Atlassian Jira - Content Pack Update #29838
Conversation
…68zuhKQfKPk-contrib-Jira-1
…68zuhKQfKPk-contrib-Jira-1
Small comment regarding this PR: Currently it is possible to modify the assignee using
Btw this command were already implemented in the JiraV2, but for some unknown reason weren't migrated: #26087 |
method='PUT', | ||
url_suffix=f'rest/api/{self.api_version}/issue/{issue_id_or_key}/assignee', | ||
json_data=assignee_body, | ||
resp_type="text" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the Cloud Documentation, the response body is empty, therefore, I believe this should be resp_type='response'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -498,6 +503,63 @@ script: | |||
- contextPath: Ticket.LastUpdate | |||
description: The last time the ticket was updated. | |||
type: Date | |||
- arguments: | |||
- description: Deprecated. Please use issue_id or issue_key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you enter this deprecated hidden parameter.
If you copied it from V2 then it was probably in the yml file, only to prevent breaking backward computability this can be removed from this V3 version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is actually required, since this argument is already used in JiraV2, and playbooks can be using the issueId argument, upgrading to JiraV3 can break their playbooks if we remove this argument, therefore, it is required to keep it, and mark it as hidden. We map JiraV2 arguments to JiraV3 in the code, using the map_v2_args_to_v3 function
@@ -2,7 +2,7 @@ | |||
"name": "Atlassian Jira", | |||
"description": "Use the Jira integration to manage issues and create Cortex XSOAR incidents from Jira projects.", | |||
"support": "xsoar", | |||
"currentVersion": "3.1.2", | |||
"currentVersion": "3.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omerKarkKatz Is adding a new command considered a minor or revision?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more fit for a revision update, I will modify the version and release notes in the inner PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hi @68zuhKQfKPk , we haven’t heard from you in a while. Please feel free to reach out to me here or on Slack. |
Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com>
I think it's ready to be merged. Please review @omerKarkKatz |
@kPKfQKhuz86 Hey thank you for addressing all the required changes. |
Pushed unit tests for the command |
Hello @omerKarkKatz , can we have it merged? :-) |
@kPKfQKhuz86 Sorry for the delay I had to run some tests. |
…68zuhKQfKPk-contrib-Jira-1
9147c78
into
demisto:contrib/xsoar-contrib_68zuhKQfKPk-contrib-Jira-1
* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838) * "contribution update to pack "Atlassian Jira"" * Update YML * Update Readme * Add missing docstrings * Apply suggestions from code review Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> * Adjust response type to empty body response * Added periods on various strings, per pre-commit test failure * Unit tests for JIRA assignee --------- Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> * updated docker and fixed RN * added self to the class function * restored some yml marketplace download changeS * fixed the unit test * typing --------- Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838) * "contribution update to pack "Atlassian Jira"" * Update YML * Update Readme * Add missing docstrings * Apply suggestions from code review Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> * Adjust response type to empty body response * Added periods on various strings, per pre-commit test failure * Unit tests for JIRA assignee --------- Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> * updated docker and fixed RN * added self to the class function * restored some yml marketplace download changeS * fixed the unit test * typing --------- Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
* add a way to upload binary file (#30532) * add a way to upload binary file * patch ci/cd error * patch ci/cd error * Apply suggestions from code review Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> --------- Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com> Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> * Update Docker Image To demisto/crypto (#30624) * Updated Metadata Of Pack AzureSecurityCenter * Added release notes to pack AzureSecurityCenter * Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.yml Docker image update * fix jira convert issues print (#30608) fix jira convert issues print #30608 * fix merge dev secrets and sync buckets (#30609) fix merge dev secrets and sync buckets #30609 * Fixed Gitlab event collector fetch (#30379) * Fix GitLab collector * release notes * pre-commit fix * pre-commit fix * increase coverage * CR fixes * fix * Update 2_2_19.md * CR fix * default limit to 500 * update docker * Remove checking 6.2 server version (#30351) * removed usage of is_ge_version function with server version less than 6.2.0. * added rn * updated docker image * added rn * removed unit tests * fixed unittests * edit unittest * fixed unittest * edited unittests * edited unittests * mypy fixes * fixes * fixes * updated docker image * added rn * mypy fixes * edited unittests * edit * edit unit tests * edited the tpb to work with ng server * edited tpb * removed paging unit tests, removed arguments * reverted removing the args * Fix for dhcp (#30610) * Updated the modeling rule of microsoft dhcp * Updated the modeling rule of microsoft dhcp * Update 1_0_3.md --------- Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com> * Xdr lite playbbok (#30497) * new incidents fields * New playbook,incident type,script,layout for xdr lite changing integration default incident type and classifier * resolve conflicts - RN * update RN, update unsearchable to true in incident fields and remove unnecessary incident fields from the layout * updated layout - InvestigationVerdict dynamic section * Apply suggestions from code review Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * fixes after review * Update Packs/CortexXDR/Scripts/InvestigationVerdict/README.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * fix for test playbooks Test_XDR_Playbook_execute_script_commands.yml * fix after review. change script name * RN after fixes * RN after fixes * change name of the script yml file in pack ignore * lint fix * time range fix --------- Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * comment out us its looks unused and adding unchanged_files to the changed_files (#30632) * OpsGenie v3 - Fix polling commands (#30579) * fix get_request_command method * update RN * validate results.content is not empty * add "." to missing descriptions * added test_get_request_command_valid_raw_response * fix mypy * fix flake8 * [Marketplace Contribution] Atlassian Jira - Content Pack Update (#30512) * [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838) * "contribution update to pack "Atlassian Jira"" * Update YML * Update Readme * Add missing docstrings * Apply suggestions from code review Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> * Adjust response type to empty body response * Added periods on various strings, per pre-commit test failure * Unit tests for JIRA assignee --------- Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> * updated docker and fixed RN * added self to the class function * restored some yml marketplace download changeS * fixed the unit test * typing --------- Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com> --------- Co-authored-by: Pierre <Winultimatum@users.noreply.github.com> Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com> Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> Co-authored-by: Koby Meir <kobymeir@users.noreply.github.com> Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com> Co-authored-by: merit-maita <49760643+merit-maita@users.noreply.github.com> Co-authored-by: yasta5 <112320333+yasta5@users.noreply.github.com> Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com> Co-authored-by: OmriItzhak <115150792+OmriItzhak@users.noreply.github.com> Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> Co-authored-by: Moshe Galitzky <112559840+moishce@users.noreply.github.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com> Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
* [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838) * "contribution update to pack "Atlassian Jira"" * Update YML * Update Readme * Add missing docstrings * Apply suggestions from code review Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> * Adjust response type to empty body response * Added periods on various strings, per pre-commit test failure * Unit tests for JIRA assignee --------- Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> * updated docker and fixed RN * added self to the class function * restored some yml marketplace download changeS * fixed the unit test * typing --------- Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
* add a way to upload binary file (#30532) * add a way to upload binary file * patch ci/cd error * patch ci/cd error * Apply suggestions from code review Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> --------- Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com> Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> * Update Docker Image To demisto/crypto (#30624) * Updated Metadata Of Pack AzureSecurityCenter * Added release notes to pack AzureSecurityCenter * Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.yml Docker image update * fix jira convert issues print (#30608) fix jira convert issues print #30608 * fix merge dev secrets and sync buckets (#30609) fix merge dev secrets and sync buckets #30609 * Fixed Gitlab event collector fetch (#30379) * Fix GitLab collector * release notes * pre-commit fix * pre-commit fix * increase coverage * CR fixes * fix * Update 2_2_19.md * CR fix * default limit to 500 * update docker * Remove checking 6.2 server version (#30351) * removed usage of is_ge_version function with server version less than 6.2.0. * added rn * updated docker image * added rn * removed unit tests * fixed unittests * edit unittest * fixed unittest * edited unittests * edited unittests * mypy fixes * fixes * fixes * updated docker image * added rn * mypy fixes * edited unittests * edit * edit unit tests * edited the tpb to work with ng server * edited tpb * removed paging unit tests, removed arguments * reverted removing the args * Fix for dhcp (#30610) * Updated the modeling rule of microsoft dhcp * Updated the modeling rule of microsoft dhcp * Update 1_0_3.md --------- Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com> * Xdr lite playbbok (#30497) * new incidents fields * New playbook,incident type,script,layout for xdr lite changing integration default incident type and classifier * resolve conflicts - RN * update RN, update unsearchable to true in incident fields and remove unnecessary incident fields from the layout * updated layout - InvestigationVerdict dynamic section * Apply suggestions from code review Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * fixes after review * Update Packs/CortexXDR/Scripts/InvestigationVerdict/README.md Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * fix for test playbooks Test_XDR_Playbook_execute_script_commands.yml * fix after review. change script name * RN after fixes * RN after fixes * change name of the script yml file in pack ignore * lint fix * time range fix --------- Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> * comment out us its looks unused and adding unchanged_files to the changed_files (#30632) * OpsGenie v3 - Fix polling commands (#30579) * fix get_request_command method * update RN * validate results.content is not empty * add "." to missing descriptions * added test_get_request_command_valid_raw_response * fix mypy * fix flake8 * [Marketplace Contribution] Atlassian Jira - Content Pack Update (#30512) * [Marketplace Contribution] Atlassian Jira - Content Pack Update (#29838) * "contribution update to pack "Atlassian Jira"" * Update YML * Update Readme * Add missing docstrings * Apply suggestions from code review Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> * Adjust response type to empty body response * Added periods on various strings, per pre-commit test failure * Unit tests for JIRA assignee --------- Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> * updated docker and fixed RN * added self to the class function * restored some yml marketplace download changeS * fixed the unit test * typing --------- Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com> --------- Co-authored-by: Pierre <Winultimatum@users.noreply.github.com> Co-authored-by: Pierre SOLER <9917674+Winultimatum@users.noreply.github.com> Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> Co-authored-by: Koby Meir <kobymeir@users.noreply.github.com> Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com> Co-authored-by: merit-maita <49760643+merit-maita@users.noreply.github.com> Co-authored-by: yasta5 <112320333+yasta5@users.noreply.github.com> Co-authored-by: eepstain <116078117+eepstain@users.noreply.github.com> Co-authored-by: OmriItzhak <115150792+OmriItzhak@users.noreply.github.com> Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com> Co-authored-by: Moshe Galitzky <112559840+moishce@users.noreply.github.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: 68zuhKQfKPk <98105006+68zuhKQfKPk@users.noreply.github.com> Co-authored-by: kPKfQKhuz86 <147484800+kPKfQKhuz86@users.noreply.github.com> Co-authored-by: anas-yousef <44998563+anas-yousef@users.noreply.github.com> Co-authored-by: omerKarkKatz <95565843+omerKarkKatz@users.noreply.github.com> Co-authored-by: Jakob Weinzettl <jakob.weinzettl@group.issworld.com> Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com> Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
Status
Contributor
@68zuhKQfKPk
Notes
Restores the functionality of assigning the user without the need of edit permissions on issues as described in API docs: https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-assign
Video Link
Short demo video of the Pack usage. Speeds up the review. Optional but recommended. Use a video sharing service such as Google Drive or YouTube.