Hi Team,
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
When
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.ModifiedValue;
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder;
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @mohit panwar , create a new question for new topic, please. If you mention me, I will get notification and I can check it :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.