Open cidrbl0ck opened 1 month ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Slezhuk @pertoft @tarka click here for bot help
CC @russoz who worked on the module in the past and might know :)
hi @cidrbl0ck , sorry for taking this long.
If memory serves, JIRA Service Desk is not the same as plain old JIRA (or JIRA Software - they have gone through some rebranding a while back, not sure what the official names are today), so that would be the reason for the distinct URIs.
This module was created, back in the day, to interact with plain old Jira. Personally, I think it is a bit bloated and that we should break it in smaller pieces.
I know this is probably not the answer you would like to hear but right now I don't think there is much we can do. It will take a major revamp of the module, a comprehensive rewrite of everything to cover a meaningful set of APIs in both products.
Thank you Alexi! For this current project I did end up rolling with plain old APi tasks. However I wonder, would it be possible for me to edit the ingrained uri? Or would that cause issues in other functions?
From: Alexei Znamensky @.> Date: Saturday, May 25, 2024 at 6:11 AM To: ansible-collections/community.general @.> Cc: Ben Hart @.>, Mention @.> Subject: Re: [ansible-collections/community.general] Jira module interacting with a Jira Servicedesk api? (Issue #8362)
hi @cidrbl0ckhttps://github.com/cidrbl0ck , sorry for taking this long.
If memory serves, JIRA Service Desk is not the same as plain old JIRA (or JIRA Software - they have gone through some rebranding a while back, not sure what the official names are today), so that would be the reason for the distinct URIs.
This module was created, back in the day, to interact with plain old Jira. Personally, I think it is a bit bloated and that we should break it in smaller pieces.
I know this is probably not the answer you would like to hear but right now I don't think there is much we can do. It will take a major revamp of the module, a comprehensive rewrite of everything to cover a meaningful set of APIs in both products.
— Reply to this email directly, view it on GitHubhttps://github.com/ansible-collections/community.general/issues/8362#issuecomment-2131186232, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AST3YYH6TO66CMHMUEQO5ALZEBPWJAVCNFSM6AAAAABHWYD3DCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZRGE4DMMRTGI. You are receiving this because you were mentioned.Message ID: @.***>
Thank you Alexi! For this current project I did end up rolling with plain old APi tasks. However I wonder, would it be possible for me to edit the ingrained uri? Or would that cause issues in other functions?
I would recommend creating a new, separate module for Jira Service Desk. As a matter of fact, I am considering breaking this module into smaller pieces, but no timeframe for that yet - I am doing exactly that with django_manage
these days.
Summary
I am following the examples listed here, in order to create a new Issue in our Projects service desk. Except defining uri as:
https://comapny.atlassian.net/
results inret/api/2/issue
being appended to the uri value. The correct uri for the service desk api is/rest/servicedeskapi/request
.Is this module not intended for this sort of use or is there a way to overwrite or define the entire uri value?
Issue Type
Bug Report
Component Name
community.general.jira
Ansible Version
Community.general Version
Configuration
OS / Environment
ghcr.io/ansible/creator-ee:v24
Based off quay.io/fedora/fedora-minimal:39
Steps to Reproduce
Export JIRA_HOST, JIRA_USER and JIRA_PASS with the appropriate values.
Expected Results
A new issue created.
Actual Results
Code of Conduct