It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I am tryng to get the value in the issuetype field.

Jason Galm Apr 04, 2013

I need this script to only run if the issuetype is Story. (for right now Bug because I don't have Grasshopper installed)

I have tried " issue.getIssueTypeObject().getType() " but that either returns "Standard" or "Sub-Task"

Then I used

def fieldMang = ComponentAccessor.getFieldManager()
def field = fieldMang.getField("issuetype")

but field doesn't seem to have any methods to get the value from it, and I can't find a method in FieldManager that handles returning a value if you know the issue.

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Go2Group] Community Leader Apr 04, 2013

try issue.getIssueTypeObject().getName()

Jason Galm Apr 04, 2013

I did not see that method in the API. Thank you for pointing it out.

Tim Theis Aug 05, 2015

Thank you... I needed this answer too!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

838 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you