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

[Question] Ability to manage multi-valued customFields #252

Closed
cyberpescadito opened this issue Aug 11, 2022 · 1 comment
Closed

[Question] Ability to manage multi-valued customFields #252

cyberpescadito opened this issue Aug 11, 2022 · 1 comment
Assignees
Milestone

Comments

@cyberpescadito
Copy link

Since TheHive5, one can add multiple values for one customField.

thehive4py should give the ability to:

  • Add a value for a customfield
  • Delete a value for a customfield
  • Edit a value for a customfield
@Kamforka Kamforka added this to the 2.0.0b2 milestone Aug 11, 2022
Kamforka added a commit that referenced this issue Aug 11, 2022
Kamforka added a commit that referenced this issue Aug 11, 2022
Kamforka added a commit that referenced this issue Aug 11, 2022
@Kamforka Kamforka self-assigned this Aug 11, 2022
@Kamforka Kamforka linked a pull request Aug 11, 2022 that will close this issue
2 tasks
@nadouani nadouani removed a link to a pull request Aug 16, 2022
2 tasks
nadouani pushed a commit that referenced this issue Aug 16, 2022
* #252 - Add custom field types

* #252 - Add custom field endpoint

* #252 - Add custom field tests
@nadouani
Copy link
Contributor

This is already supported. Here is a n example:

client.case.create({
    'title': 'New case from TheHive4py 2.0.0',
    'description': 'A simple case object',
    'tags': ['sample', 'demo', 'thehive4py'],
    'severity': 3,
    'flag': True,
    'status': 'InProgress',
    'customFields': [
        {'name': 'target', 'value': 'HR'},
        {'name': 'target', 'value': 'Sales'}
    ]
})

@nadouani nadouani changed the title [FR] Ability to manage multi-valued customFields [Question] Ability to manage multi-valued customFields Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants