guilhemmarchand / TA-jira-service-desk-simple-addon

Atlasian JIRA add-on for Splunk alert actions
11 stars 8 forks source link

Project is stripped after X Values #3

Closed markusspitzli closed 4 years ago

markusspitzli commented 4 years ago

We have a lot of Projects on our Jira Instance. So many that It doesn't show all Projects when creating an alert.

It would be great if all Projects are shown. maybe with a parameter like max_list_projects in the configuration file.

guilhemmarchand commented 4 years ago

Acknowledged.

Does the list of project gets truncated at the command level, or within the dropdown selection @markusspitzli ?

Running the Get projects report or custom command direclty.

Thanks

markusspitzli commented 4 years ago

The list is truncated at the dropdown section.

Running the Get Project report delivers the complete list.

guilhemmarchand commented 4 years ago

This is a bit strange @markusspitzli

I actually tested by simulating the listing of the projects via a CSV file from the dropdown (instead of the call to the jirafill command), and could get up 1500 entries listed in the dropdown:

image

since you confirmed that the Get project report provides the complete list of projects in your JIRA instances this seems a bit suspicious.

One alternative I am thinking of could be to provide a similar option to the dynamic priorities which would override the project definition if it has been set. This effectively would allow defining the project event if it is not listed, and additionally provide dynamic options to define the project as part of the search logic via tokens.

Let me know your thinking

markusspitzli commented 4 years ago

@guilhemmarchand I prefere defining the project even if it is not listed.

guilhemmarchand commented 4 years ago

@markusspitzli

Yes the best by far would be to understand / fix that truncation, I could't reproduce it on my end. How many projects are there in your instance ?

Safety double check, does:

| jirafill opt=1 | stats count by key, key_projects | dedup key_projects | sort key_projects | fields key, key_projects
| stats c

Provides the exact number of unique projects ?

guilhemmarchand commented 4 years ago

Hi @markusspitzli

Is is still an issue or shall we close this one ?

Thank you

Guilhem

guilhemmarchand commented 4 years ago

Closed for inactivity.