Dependencies with nFeed field types using a web service

Oskari Rautiainen January 6, 2013

Hi,

I am using the nFeed plugin (https://marketplace.atlassian.com/plugins/com.valiantys.jira.plugins.SQLFeed). I have two different nFeed fields; I want one to be the parent and one to be the child such that selection of the parent gives you different options in the child. Basically a cascading select, but both fields are being pulled from a web service using XML. In the web service the objects in the parent contain the child object. Hence there is already a hierarchy in the web service and I want that to be represented in JIRA. The problem I am having is trying to get the parent hierarchy to work such that the url for the REST access changes dynamically as a different parent object is chosen. The way you would access the info I need in the child through a REST API is with the url: https://www...../parentObject/..... I can get the info for the parent field without any problems, but I don't know how to change the url each time a different option is selected in the parent field. Is there a way to do this? Am I making this harder than it needs to be?

To make things more complicated the parent field is an autocomplete textbox and the child is a select list.

Any help would be greatly appreciated!

-Oskari

2 answers

0 votes
himanshu patel May 4, 2016

Hi Cyrille:

 

I am having following situation where in my child nfeed URL i need to replace the URL parameter with parent nfeed value.

 

for example :

child nfeed URL is : http://test.com/api/filter/{id}

now i need to replace "{id}" with actual value from parent nfeed field.

 

I have tried under Edit view tab of child nfeed like under Query and custom field value storage option and in URL Path field

{id}= $issue.get("<parentnfeed>"))

It seems whatever we add under URL path is getting appended .

we are using JIRA 7.1.2 and nfeed version :5.6.2

Any idea will be appreciated. 

Thanks,

Himanshu

Nicolas Simon
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 Leaders.
July 25, 2016

Hello himanshu,

I am Nicolas from the Valiantys support team.

Indeed, anything you add in the URL Path filed will be appended to the URL you set in the datasource. If you want to retrieve the value contained in your parent customfield, the following syntax for the URL Path field should work:

http://test.com/api/filter/'$issue.get("<parentnfeed>"))'

For any other question about nFeed, you can contact our support team anytime at https://valiantys.atlassian.com

Regards,

Nicolas

0 votes
Cyrille Martin
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 Leaders.
March 24, 2013

Hi Oskari,

in the configuration of the customfield, you define the path to the webservice.

This path is concatenated to the term you put in the Edit field.

So for your child nFeed Custom Field:

Indicate the path to the Webservice : https://www....../

In the edit field : $parentValues.get(0)/...


Regards,

Cyrille

Do not hesitate to create a support request on our JIRA

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events