I have a requirement to close the particular issue type of my project using some comments. Need your help to have a code in Groovy Script. Thanks in Advance for your help.
Hi @mohit panwar welcome on the community :)
I will definitely need more information to be able to help.
We can start with service you can use to transition an issue. YOu can use these methods
Thanks, Martin for the response.
Below is another question that is on high priority. Please give some guidance I am new to script runner.
I need some help. How to get the value of the custom field from the issue type. Then printing and using that variable further.
I have an issue type with the name "TEST1-5". when trying to print the value for issue and csChangeArea I am getting "NULL" value. Please help and suggest how to use th
def issueManager = ComponentAccessor.getIssueManager()
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def issue = ComponentAccessor.getIssueManager().getIssueByCurrentKey("TEST1-5")
def csChangeArea = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("Username")
log.info("My script variable new value : " + issue)
log.info("Custom field value : " + csChangeArea)
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