Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Managing created events under "Jira issue dates" on Jira calendar

Deleted user
December 28, 2020

Hi,

I am embedding a calendar into a confluence page to track multiple team member activities based on Jira issue dates. 

I have added individual events with relevant Jira filtering on "Jira Issue dates" event.  Close to 20 such events are created with individual JQL filtering. 

Once the events are created, I would like to order them or delete some of them as required in the events list that shows along with the calendar. However, I am not able to do this. 

The only option, that I could see is, I can hide the whole set of "Jira Issue dates" event, which is not what I would like to do. 

 

Can you please help on this?

 

-Alagendran.

2 answers

2 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Antoine Berry
Community Champion
August 8, 2022

Hello @Hans Pesata ,

There is a ScriptRunner feature called "Script registry" that should sum up all the customized scripting you have on your instance : 

image.png

Hans Pesata
Contributor
August 8, 2022

Thanx!

Regards,

Hans

Holger Lehmann [catworkx GmbH]
August 8, 2022

Hi @Hans Pesata 

 

but please remember, that it may take quite a while for alle Script occurrences to load and to be displayed.

 

Cheers,

Holger

1 vote
Answer accepted
Holger Lehmann [catworkx GmbH]
August 8, 2022

Hi @Hans Pesata

first where to find the AO Tables in you running Jira instance:

  1. Please goto the
    1. -> "Admin Section"
    2. -> "System"
    3. -> "Plugin Data Storage"
  2. There you will find all AO tables, regardless if used by an installed plugin or not.
    1. You can search this list for Adaptavist Script Runner and will find those tables:
      • AO_4B00E6_ADAPTA_ANALYTIC
      • AO_4B00E6_SR_USER_PROP
      • AO_4B00E6_SCRIPT_RUN_RESULT
      • AO_4B00E6_STASH_SETTINGS
      • AO_4B00E6_UPGRADE_BACKUP

But this will not help as the Groovy scripts, especially those related to the workflows, are not stored in the AO tables at all.

Some of your scripts may even be found on the filesystem ($JIRA_HOME/scripts)!

Now regarding the scripts stored in the database:

  1. Combination of propertyentry and propertytext:
    • propertyentry.entity_name = 'jira.properties'
    • propertyentry.property_key = 'com.onresolve.jira.groovy.groovyrunner:groovyrunner'
    • propertyentry.propertytype = 6
      • related propertytext.propertyvalue contains groovy code stored as json
  2. Inline Groovy Script in a Jira Workflow:
    • The XML found in jiraworkflows.descriptor contains everything related to e.g. conditions, validatos and postunctions as well as configurations, steps and transitions.
      • In this XML you will find XML Elements "arg" with the "class.name" set to e.g. "com.onresolve.jira.groovy.GroovyFunctionPlugin
        " and a second Element "arg" with the "name" attribute set to "FIELD_INLINE_SCRIPT". The CDATA section of those contain the inline script.
      • In case you only find an Element "arg" with a "name" set to "FIELD_SCRIPT_FILE" there is another "arg" with the name "script FileName" that points to the file on disk

 

I hope this helps and before you ask, yes, it is possible to do this in a Groovy Script from the running Jira instance instead of trying to piece together the info from the database.

Cheers,

Holger

Hans Pesata
Contributor
August 8, 2022

Thanx for the valueable Information!

regards,
Hans

Like Antoine Berry likes this
TAGS
AUG Leaders

Atlassian Community Events