Forums

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

Is it possible to use this package com.atlassian.jira.pageobjects.pages ?

Ramesh Lakshmanasamy June 14, 2018

com.atlassian.jira.pageobjects.pages package does not exist

1 answer

0 votes
Mark Markov
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 14, 2018

Hello @Ramesh Lakshmanasamy

What are you tryin to achieve with this package?

Ramesh Lakshmanasamy June 14, 2018

I need to get Priority using priority name.So i am trying to get Priority.

Mark Markov
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 14, 2018

Try this:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.priority.Priority

def constantsManager = ComponentAccessor.getConstantsManager()
Priority priority = constantsManager.getPriorities().find {it.name == "Low"} // low - priority name
Ramesh Lakshmanasamy June 14, 2018

@Mark Markov getPriorities() method not avail in priority package that is config package right and also we cant pass parameter in above method.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events