see i have tryed this but whenever i print this i get total object are available instead of get all the values available in grid table...
Long l = Long.valueOf(10001);
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager();
CustomField customField = customFieldManager.getCustomFieldObject(l);
Object value = issues.get(0).getCustomFieldValue(customField);
// there is two column entry in my table grid editor so getting value =2
System.out.println("custom field TGE value::::::::::"+value);
//buti want the actual value available in grid table. I am getting other custom field value but in case of grid table i getting only total column count
Table Grid customfield stores its data in separate db table which you've defined in your configurations. And API that you used is getting values from jira db table "customfieldvalue". Therefore to get values from TGE field you should use its own API. Here is a nice example of script that might cover your needs:
about TGE.. information is very helpfull and the link (https://wiki.idalko.com/display/TGPD/Read+Grid+Data) you have mention i have tried that in script runner it is working great. Now i am thinking to get TGE value using JIRA REST API and i have done it my using REST Plugin Module (https://developer.atlassian.com/docs/atlassian-platform-common-components/rest-api-development/rest-plugin-module) now the problem is when it ask for Enter REST Path /restservice: : while selecting plugin module which is no.14 so i have entered complate jira rest api url formate with grid_id and issue_id and i am getting TGE value in json format but it's fixed in:
<rest name="Rest Service" i18n-name-key="rest-service.name" key="rest-service" path="/http://localhost:2990/jira/rest/idalko-igrid/1.0/grid/10001/issue/10000" version="1.0">
<description key="rest-service.description">The Rest Service Plugin</description>
how can i pass grid and issue id (grid/10001/issue/10000) dynamically in "path".
Any suggestion or link would be great help..
thanks in advance
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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!
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