How to retrive data from Web Panel

Hi Team,

I add a web panel which create a table and show data from database using context provider.

But I not getting the way how to retrieve the data from web panel.

Any help will be appreciated.




1 answer

0 votes

What does "retrieve data from web panel" mean?  A panel is for display to the user, it's not for giving other bits of code data. 

What are you trying to retrieve and why aren't you asking for the data directly from the appropriate source?

Hi Nic thanks for reply,

Retrive data from web panel mean, i make a table in velocity and add using a web panel and user fill some data in the table row.

There is a save button which save that data. How to do this i have no idea.

I'm confused now.  Do you have this "web panel" that you want to take data from working or not?

Nic Don't be confused.. Look there is a velocity template that render editable table through web panel plugin module..... and there is a add button on velocity.

What i want when user add data to table and click on button all the value of table stored in db.

Now i am stuck how to get data from table and which class is responsible for handling that event.


I'm afraid your explanations are not helping.

You keep saying web panel.  Originally you were asking to get data from this panel, now you've said you're trying to save data.

It's totally unclear what you want to do, or what you have working so far.


Nic, i want to get data from table which is generated by velocity template using web panel. In this table user fill data rows , when user click on button i want to get table rows data and want to store in db. 

Problem is that, i dont know, how to get table data on button click so that i can save in db.

Hope u can understand.


I'm really sorry, but repeating things I did not understand before does not add anything.

Could you please just tell us what you have working now (if anything) and what you are trying to get to (So far, all that is clear is that you want to save some table data?  But you haven't said whether this belongs to an issue or not, or how you want to implement it)

There is an issue view that render table through web panel and i want to get that table data from issue.

Is that fine Mr Nic.

Not really.  It's gone back to the original description, to which I ask again:

What does "retrieve data from web panel" mean?  A panel is for display to the user, it's not for giving other bits of code data.



Thanks Nic..

I understood web panel is for rendering.

So help me to solve the problem, what i should do to make a table on issue and get their data on button click event without redirect to any other page.

The last change of goal here now seems to be nothing to do with web-panels or getting data at all.

It seems to be that you want a field that behaves as a table.  Your previous mentions of web-panels, getting data and saving things are utterly irrelevant, you just want a table like field.  Is that right?    (And I have no idea why you've now mentioned "redirect to other page")

Yup you are right, i wana a field that look like a table and also behave like a table user add data to field and i want to fetch that data.

Please help Nic to solve this problem.. I am stuck here..


Right, so you want a table field.  What does the rest of that mean?  "also behave like a table user add data to field and i want to fetch that data." does not make sense. 

Yup a table field and want to fetch table data that's it nothing else.

How ? Don't know. Help !!

What does "fetch table data" mean?

You keep saying it without explaining it.  If it's a field, the data will be in it, in front of the user.  So why do you keep saying "fetch data"?

Ok help me how to do?

Seriously, I can't help you "fetch data" when you refuse to tell me what you mean.


Nic.. i am not refuse to tell you anything .Fetch data is getting data from field(table)

My goal is to implement a table like field in issue through which user add data and their is a button for save that data in db.

I don't know to do implement this.

Please, please, answer the question.

>Fetch data is getting data from field

What does that mean?  It tells us nothing about what you want. 

What would a "fetch" actually do?  

You have some data in a field.  You "fetch" it.  What happens?


Nic.. Fetch data is getting data from field ? Ans is " Yes "

after fetch data from field i want to operate some operation.

Ok, let me explain the problem with your question this way.

  • You are an expert farmer, and I'm a new one
  • I have a field.
  • It has some crops in it.
  • I want to argfrwangle the crops in the field.

Now, can you please tell me how to argfrwangle it?

My question is simple.....

you are the expert not me..

What you understand tell me i make you clear.... don't stretch the word fetch.


I further down my question i want to implement such like this...




I am not "stretching" the word.  I am asking you to explain what it means in this context.  All I can tell you when you say "I want to fetch my data" is that "you can fetch it". 

When you "fetch" your data, what do you expect to happen? 

We've established that you want a table like field. 

You need to explain what your "fetch" is.

Have a look at pic i want to make something like this.

If you are an expert who handle this support then help me.

I cannot help you when you do not explain what you want to do.

Yes, you want a table field, we got to that in the end.

But you need to explain "fetch".  What does it do?  Think of the end-user - what do they do that does this "fetch" and what do they get back?

fetch is nothing forget about fetch

Argh.  <rant>Then why did you waste so much time saying it and then avoiding explaining it?  </end rant>

The answer to the table part of the question is two parts

1) Keeping it simple - just ask your users to fill in a text field with table formatting. (Additionally, you could write a simple validator add-on to check that the data they've entered is in the right format)

2) Probably closer "you'll need code, and quite a lot of it".  It probably should be a field, as it's issue data, and to do that, you'll need to write a set of templates for rendering and accepting inputs, plus back end code to store it somehow (JIRA's custom field storage is simple numbers or strings, or arrays of them, so you'll either need to come up with a way to convert from table to string/array, or implement a new storage format)

On the second point, I'd avoid writing all that code by using instead.


Can you explain it more.. how to acheive this..

As I already said, I'd get the table add-on.

Thanks Nic for this..

can you solve my one problem..

there is a button on issue page render through web panel..

when user click on the button how can i handle that event..

No, because you have not explained the context.  Again.


Nic context is this..

1 > I render table using webpanel with a save button.

2 > When user click on save button i want to call a method on any java class with parameters and that parameters contains data from table.

3> Java class method save that data.


So help me to achieve this. if it is feasible in jira.

Yes, you should be able to do it, but I don't recommend it.  Do this as a field instead, then you won't need buttons or complex classes.


Don't understand explain it a bit.

If you do this as a field, then JIRA's edit functionality will do most of the work for you.  You will need to provide a "view" template to show the user the current values, and an "edit" template to allow them to change the data when it's on an edit screen.  You will also need some java to save and retrieve the data if you are translating it between storage and screen (e.g. your templates display a table, but you're actually storing xml).  If you do it that way, then you don't need "save" buttons - the data will be saved by the edit action in JIRA

Ok that sounds good..

but if i click on button how can i handle that event

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,637 views 18 21
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