Skip to content

Commit

Permalink
Jira 6.5.0 release (#2713)
Browse files Browse the repository at this point in the history
* SOAR-17400-cloud enable jira (#2687)

* SOAR-17400-bump the sdk to 6.1.0 (#2705)

* [SOAR-17400] - Jira - update the connection test to return as a dictionary (#2707)

* SOAR-17400-return connection test pass a dict

* SOAR-17400-Adding a timeout to the connection test requests

* SOAR-17400-moving create user to rest api call do products now being a required field

* SOAR-17400-moving create user to rest api call do products now being a required field

* SOAR-17400-moving create user to rest api call do products now being a required field

* [SOAR-17400] - Jira - Adding an error if trying to use Jira on-prem on ICON cloud (#2726)

* SOAR-17400-Addding an error if trying to use Jirs on-prem on ICON cloud

* SOAR-17400-Addding an error if trying to use Jirs on-prem on ICON cloud

* SOAR-17400-Also adding to the troubleshooting about jira cloud only being supported in Icon cloud

* SOAR-17400-Updating wording around jira cloud only connections
  • Loading branch information
rbowden-r7 authored Sep 3, 2024
1 parent f8f267b commit c891a62
Show file tree
Hide file tree
Showing 53 changed files with 1,399 additions and 1,548 deletions.
38 changes: 19 additions & 19 deletions plugins/jira/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
{
"spec": "0ad7c587f98e9ec9682f905a479b689e",
"manifest": "68db9a47b3c66891492badae084a4a49",
"setup": "8cdfacf85b3afac31d306ec033325011",
"spec": "6635c0af4e5c44ca8e24acc2d46f3d76",
"manifest": "f6c51b9a5d5afae0b49ca91e095bbfcc",
"setup": "8a1dacc5bb9f8c6dec279269d4b2e0e7",
"schemas": [
{
"identifier": "assign_issue/schema.py",
"hash": "aa671b2edd5078ce998fcb3c0285298e"
"hash": "b588383dab5d62da7982f539724da911"
},
{
"identifier": "attach_issue/schema.py",
"hash": "6d42b10cf51794c178c5a038402f6bc1"
"hash": "d0055f643440d1fb0fffd929d6fb73fe"
},
{
"identifier": "comment_issue/schema.py",
"hash": "a02f51e14c26498c3c75ed31d023f9c0"
"hash": "a0a712dd8264019e26f7455ee6f23b63"
},
{
"identifier": "create_issue/schema.py",
"hash": "b1641c197a272f28d077604ae23bfada"
"hash": "76c1dac83ec3ac39f41fb7ed78b018d1"
},
{
"identifier": "create_user/schema.py",
"hash": "0dd6e70544c3ebd57c5d46e5dd022f11"
"hash": "241e3d5a1a9591dda84e640b06c64df6"
},
{
"identifier": "delete_user/schema.py",
"hash": "c6365541f98b07034edd6336aee77ad6"
"hash": "c8b354c798e3f75edac5935b4bafc418"
},
{
"identifier": "edit_issue/schema.py",
"hash": "b7086c999099a3ff90fec805241be4da"
"hash": "1d46026565642bcf66c105e1d71bf745"
},
{
"identifier": "find_issues/schema.py",
"hash": "c04bb12033e5dce0cddf1e4f149dfef7"
"hash": "888dafbdcbe57ef22548a21134692cce"
},
{
"identifier": "find_users/schema.py",
"hash": "ae94b018a78fa59b9191e0cddf0c893e"
"hash": "cf045693f35dfbe6069c94f8f7218bcf"
},
{
"identifier": "get_comments/schema.py",
"hash": "03a7ca163a54bff9bc67ee74573677cb"
"hash": "9eab64ac6f70f43a02c169c6c1be8768"
},
{
"identifier": "get_issue/schema.py",
"hash": "7a31981f4f64aceaeed1f2683dc06ff3"
"hash": "c6346b4187ecd6aac4003ce105df5e3c"
},
{
"identifier": "label_issue/schema.py",
"hash": "5608e65c53700afbec7beb7e917e00a7"
"hash": "41bd3d2ebbadbf4827af049b7b21d548"
},
{
"identifier": "transition_issue/schema.py",
"hash": "48b4a225cbf9ddcf0ee6c2cabd2f0de1"
"hash": "8038146389a46b266a5c845d514ea31d"
},
{
"identifier": "connection/schema.py",
"hash": "3bebd464b71f6afd1dd8bfa3daeb8601"
"hash": "69e6e5efe9095aec7851c5e67de45939"
},
{
"identifier": "monitor_issues/schema.py",
"hash": "622d19c71dfb082371b18f9f888101f4"
"hash": "738bc8ebaa55b7192bd842113d55b433"
},
{
"identifier": "new_issue/schema.py",
"hash": "1d153084a9774d5f3e750e576ba0861a"
"hash": "2ba6ff615b05eca329ca3fad70736b8f"
}
]
}
15 changes: 9 additions & 6 deletions plugins/jira/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM rapid7/insightconnect-python-3-38-plugin:4
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.0

LABEL organization=rapid7
LABEL sdk=python
LABEL type=plugin
Expand All @@ -9,16 +10,18 @@ ENV REQUESTS_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt

ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1

ADD ./plugin.spec.yaml /plugin.spec.yaml
ADD . /python/src

WORKDIR /python/src
# Add any package dependencies here

# End package dependencies
ADD ./plugin.spec.yaml /plugin.spec.yaml
ADD ./requirements.txt /python/src/requirements.txt

RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

ADD . /python/src

RUN python setup.py build && python setup.py install

# User to run plugin code. The two supported users are: root, nobody
USER nobody

ENTRYPOINT ["/usr/local/bin/komand_jira"]
58 changes: 29 additions & 29 deletions plugins/jira/bin/komand_jira
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import os
import json
from sys import argv

Name = "Jira"
Vendor = "rapid7"
Version = "6.4.0"
Description = "Automate the creation, search and management of issues, users, and alerting for Jira Software, Jira Server, and Jira ServiceDesk"
Version = "6.5.0"
Description = "[Jira](https://www.atlassian.com/software/jira) is an issue tracking product developed by Atlassian that allows teams to plan, track, and release great software. This plugin uses the [Jira REST API](https://developer.atlassian.com/cloud/jira/platform/rest/v2/) to programmatically manage and create issues and users. The Jira plugin supports cloud and on-premise versions of Jira Software, Jira Server, and Jira ServiceDesk products from Atlassian. Please note that only JIRA cloud is supported with InsightConnect cloud connections"


def main():
Expand All @@ -23,7 +23,7 @@ def main():
monkey.patch_all()

import insightconnect_plugin_runtime
from komand_jira import connection, actions, triggers
from komand_jira import connection, actions, triggers, tasks

class ICONJira(insightconnect_plugin_runtime.Plugin):
def __init__(self):
Expand All @@ -34,36 +34,36 @@ def main():
description=Description,
connection=connection.Connection()
)
self.add_trigger(triggers.MonitorIssues())

self.add_trigger(triggers.NewIssue())


self.add_trigger(triggers.MonitorIssues())

self.add_action(actions.TransitionIssue())

self.add_action(actions.FindIssues())

self.add_action(actions.AssignIssue())

self.add_action(actions.AttachIssue())


self.add_action(actions.LabelIssue())

self.add_action(actions.GetComments())

self.add_action(actions.CommentIssue())

self.add_action(actions.CreateIssue())

self.add_action(actions.CreateUser())

self.add_action(actions.GetIssue())
self.add_action(actions.FindUsers())
self.add_action(actions.DeleteUser())


self.add_action(actions.CreateUser())

self.add_action(actions.AttachIssue())

self.add_action(actions.CreateIssue())

self.add_action(actions.EditIssue())

self.add_action(actions.FindIssues())

self.add_action(actions.FindUsers())

self.add_action(actions.GetComments())

self.add_action(actions.GetIssue())

self.add_action(actions.LabelIssue())

self.add_action(actions.TransitionIssue())



"""Run plugin"""
cli = insightconnect_plugin_runtime.CLI(ICONJira())
Expand Down
Loading

0 comments on commit c891a62

Please sign in to comment.