Forums

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

 Unable to get value of a custom field from EPIC in JIRA Enterprise

Atiq Ahmad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2019
  • In JIRA Enterprise instance there is a custom field of an EPIC called “Initiative” and it has a value like “Code Practice Review for Projects”. When we try to get that field by using JIRA SDK we only get it’s ID something like 12345 but we don’t get the value i.e. Code Practice Review for Projects. However when somebody change this value to anything (then it will create a history log) and from there onwards we start getting the correct value i.e “Code Practice Changed String”. May we please know if we are missing something?

 

Please don’t hesitate to ask if you need any more details or if you have any further questions.

 

Looking forward for your immediate response. Many Thanks.

1 answer

1 vote
Jobin Kuruvilla [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.
February 11, 2019

What kind of a field is it? Select List, String, something else? You can get the value using the following and then cast it into the appropriate type.

issue.getCustomFieldValue(customField)

 For example, see https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-get-custom-field-value/qaq-p/537007 to learn more about getting select list values.

Atiq Ahmad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 11, 2019

Really appreciate your prompt response.

Please note we are using the following .NET SDK (Version 10.4.0). Could you please advise how we can get the value of custom field by using .NET SDK.

Moreover the field is "Select List" and the link you shared seems to be JAVA specific as we tried to do the same in .NET (C#) but only GetCascadingSelectField method is available which does not provide the required information / value.

https://www.nuget.org/packages/Atlassian.SDK/

Please feel free to let us know if you need any more information. Looking forward for your positive reply.

Suggest an answer

Log in or Sign up to answer