The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • I need to keep if condition so that the issue is bug then only Put method execute in scriptlistener

I need to keep if condition so that the issue is bug then only Put method execute in scriptlistener

thumuluru.shreya
Contributor
July 25, 2024

I need to keep if condition so that the issue is bug then only Put method execute in script listener in Jira.

If the issue is bug then only the put method needs to execute

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mohamed Benziane
Community Champion
July 26, 2024

Hi,

To get the issuetype value you could try this in your code : 

issue.fields.issuetype.name

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events