Database Querying

Hi Antonella,

In our current change process we are querying directly on the JIRA Database, as you search in more detail and we can send out emails automatically.

For the new process in which we would like to use your plugin, we also want to work with direct querying on the database

I am not sure if you have done this already but what are the DB tables Herzum is using. If possible maybe you can give us some examples quieries?

Many thanks,

Stefan

5 answers

Hi Antonella, thanks for this very handy. Do you maybe have some example sql scripts we can use to test?

Not sure if you were already experimenting with this?

For example

Show me all tickets from Project X in workflowstatus X where the herzum group approval = "Groupname"

If you already know the joins we do not have to check everything.

Many thanks! Stefan

Hi Stefan,


Here it is the Script you have required based on your Approval configuration with Group Picker custom Field:


SELECT hql6411dbstaging.AO_D195E9_ISSUE_APPROVAL.* FROM hql6411dbstaging.AO_D195E9_ISSUE_APPROVAL inner join hql6411dbstaging.jiraissue on hql6411dbstaging.AO_D195E9_ISSUE_APPROVAL.issue_id= hql6411dbstaging.jiraissue.ID inner join hql6411dbstaging.project on hql6411dbstaging.project.ID=hql6411dbstaging.jiraissue.PROJECT inner join hql6411dbstaging.issuestatus on hql6411dbstaging.issuestatus.ID=hql6411dbstaging.AO_D195E9_ISSUE_APPROVAL.ISSUE_STATUS where hql6411dbstaging.project.pname= 'Test2' and hql6411dbstaging.AO_D195E9_ISSUE_APPROVAL.custom_approver= 'admin' AND hql6411dbstaging.issuestatus.pname= 'To Do';

You need to customize the following:

  • hql6411dbstaging -> your Database name
  • 'Test2' -> your Project name
  • 'admin' -> your Group name
  • 'To Do' -> your workflow status

I hope it helps.

Regards,

Antonella

Hi Antonella,

Much appreciated!! let me do some testing and come back to you!

Regards,

Stefan

It worked! thanks smile. If I have additional questions I will let you know.

Regards,

Stefan

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

113 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you