Skip to content
Snippets Groups Projects
Commit b445201d authored by Václav Bartoš's avatar Václav Bartoš
Browse files

Improved message about the owner/assignee field

parent 9ec069be
No related branches found
No related tags found
No related merge requests found
// Default plugin configuration
export const THEHIVE_URL = 'https://hive.gn4-3-wp8-soc.sunet.se/';
export const THEHIVE_API_KEY = '5LymseWiurZBrQN8Kqp8O+9KniTL5cE0';
export const THEHIVE_OWNER = 'admin'; // default owner account of the created cases
export const THEHIVE_OWNER = ''; // user to assign created cases to
......@@ -26,6 +26,7 @@ function TheHiveButtonVisProvider(Private) {
// add default parameters
url: THEHIVE_URL,
apikey: THEHIVE_API_KEY,
// NOTE: setting owner currently doesn't work. This is a bug in TheHive, see https://github.com/TheHive-Project/TheHive/issues/1473
owner: THEHIVE_OWNER,
obsFields: [], // list of objects, e.g. {name: "clientip", type: "ip", cnt: 100}
}
......
......@@ -116,11 +116,10 @@ export function optionsEditor(props) {
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem grow={1}>
<EuiFormRow label="Assignee" helpText="User to assign created cases to. Must be a valid username from The Hive instance.">
<EuiFormRow label="Assignee" helpText="Assign created cases to this user instead of the owner of the API key (optional, if set, it must be a valid username from The Hive instance). **Note: This currently doesn't work due to a bug in The Hive.**">
<EuiFieldText
value={stateParams.owner}
onChange={e => setValue('owner', e.target.value)}
isInvalid={stateParams.owner == ""}
/>
</EuiFormRow>
</EuiFlexItem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment