Forums

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

How to get customfield value using JQL

Vineela Durbha
Contributor
May 31, 2019

Hi All,

I wanted to know if there is any inbuilt function which can give us the values of customfield using JQL . This customfield has other project issues and I am trying to extract those issues .

I am looking on something like issue in issuelinks()

Is this kind of extraction possible. Please someone help me.

1 answer

0 votes
Nic Brough -Adaptavist-
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.
May 31, 2019

JQL does not have anything to say about fields.  JQL just finds issues.  Literally - you run a search and all you get back is a list of issues that match the search criteria.  No fields, no information, just a flat list.

You then take that list and run it through something which reads those issues.  This is what looks at (custom) fields.  The issue navigator simply shows them in columns, the issue statistics gadget looks at the number of fields with data and splits the list into groups, and so-on.

Could you explain what you are trying to achieve in a bit more detail?  "Customfield has other project issues" does not make sense out of context, and you have not said what you really want.  Imagine I am an end-user who doesn't care about the tech behind it - what do I want to see on my screen?

Vineela Durbha
Contributor
May 31, 2019

SWBLD.PNGHi @Nic Brough -Adaptavist- 

I have a field named "PRN" in my XYZ project. This is a nfeed field which has issue keys of ABC project. I have attached the view screen of that PRN field.

I am trying a way to fetch that value in the field (which I have posted this question ) and pass into JQL for Key parameters

 

project = ABC and key in (SWBLD-331614,SWBLD-331615)

Like write a JQL query to get XYZ project issue and fetch the cf value of that issue and pass that value to the JQL of ABC project

Nic Brough -Adaptavist-
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.
June 4, 2019

There is no way to do that with nFeed fields as far as I am aware.  You would need a function to do it (not just a simple call to a field), but I don't think nFeed provides one.  ScriptRunner could do it for some field types, but I don't believe it supports nFeed field (yet)

Vineela Durbha
Contributor
June 4, 2019

I have written the jql and frm that result issue ,i am able to extract the field value..

 

Thank you

Suggest an answer

Log in or Sign up to answer