Dependencies with nFeed field types using a web service

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

This widget could not be displayed.

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

This widget could not be displayed.

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

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

60 views 2 3
Join discussion

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