The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do i get filters details through mysql. is there any mysql query?

srrekanth
February 12, 2013

I need total filters list with owner,project name who has registered subscribed filters and i want a query for fetching these details.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 12, 2013

you need to query the tables searchrequest and filtersubscription join them via searchrequest.id and filtersubscription.filter_i_d

C_Faysal _CFcon_
Community Champion
February 12, 2013

you may want to look at

https://confluence.atlassian.com/display/JIRACOM/Example+SQL+queries+for+JIRA

there is an example for "List Filter Subscriptions"

srrekanth
February 13, 2013

Hi Udo,

This query which you have shared i am getting for only 27 filters but in jira we have around 151 filters.while performing in JIRA UI through

ADMIN->USERS->SHARED FILTERS->

srrekanth
February 13, 2013

Hi Udo,

In jira we have 151 filters and please share the query a/c to it and this should include all the deatails like in UI.we are facing problem in query request to share the MYSQL QUERY.


Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 13, 2013

Hi Kanthu, I guess the 27 have a subscription while the rest has not. Do an outer join then you should get all.

Cheers,

Udo

Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 13, 2013

Since it is my Birthday: here the query

select * from searchrequest sr 
left outer join filtersubscription fs 
on sr.id = fs.filter_i_d

C_Faysal _CFcon_
Community Champion
February 13, 2013

OH Happy B-DAY UDO!!!!

All the best for you...

TAGS
AUG Leaders

Atlassian Community Events