Forums

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

The method Project.getGenericValue() is marked as deprecated - what is the alternative?

Milan B June 12, 2023

In my IDE and in the Atlassian Java API Documentation (under https://docs.atlassian.com/software/jira/docs/api/9.9.0/ ) I find the method "com.atlassian.jira.project.Project.getGenericValue()" marked as Deprecated, but I found no suggestion what to use instead.

The only hint there is: "only use this if you need to utilize an older API method

I know deprecated means it will still work for some time, but I would like to be pro-active.

Does anyone know, how to replace Project.getGenericValue(), or where to search for that information?

Many thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted
Evgenii
Community Champion
June 12, 2023

Hi, @Milan B 

If you want all data on project - you can use .getProperties()

Or you can use different methods to take only needed data, such as lead, project key and so on.

Milan B June 16, 2023

Hi Evgeniy, thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events