Comments
-
Kindly run the following script and have a look in the logs what is the value of the Started field when the field is empty: if (getActionName() != "In Progress") {return // not the In Progress transition, so don't set default value}def cField = getFieldByName("Started")def cValue = cField.getValue()log.error("cValue: " +…
-
The problem is that the issue variable is null. How do you call the script and how you initialize the issue variable?
-
It is a static compilation error. Try to execute the code.
-
You would need the ScriptRunner plugin for it.
-
I think I would need an example from you to see, what is going on in your plugin. It would be nice to have it on bitbucket or github
-
You can find an example here https://gist.github.com/jechlin/9789183
-
Jira Core is the seimplest one. Jira Software and Jira Service Desk works on Jira Core.
-
Hello, I am not sure, which CMDB plugin you found. There are a couple of them. But usually: 1. You need first to have Jira Core, Jira Software or Jira Service Desk installed and configured. 2. Yes, you would need to pay Jira Core/ Jira Software/Jira Service Desk license + Jira CMDB plugin license.
-
Try like this: import com.atlassian.jira.component.ComponentAccessor; def customField_name = customFieldManager.getCustomFieldObjectByName('Incident Source'); def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_11504"); def value = (String)issue.getCustomFieldValue(customField);…
-
It would be better, if you produced your code. I do not have such code, it would take time to write it. It would be simpler to see your code and find problems with your code.
-
Do you mean new Jira UI? If so, then it is available only on Cloud
-
Could you add logging to your script and have a look in the logs? FormField fieldFF = getFieldByName("Group ID"); log.error("fieldFF: " + fieldFF) String fieldValue = fieldFF.getValue(); log.error("fieldFF value: " + fieldValue) if(!"Some Special Group".equals(fieldValue)){ log.error("in condition") FormField fieldToHideFF…
-
You would need a plugin for it like Power Scripts, ScriptRunner, Automation for Jira or Workflow Toolbox
-
What is your Jira version? Is it Cloud or Server?
-
What is the error? I am not a compiler, but I can see two problems def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_11504"); if(( (value = "CTI Alert") || (value != "CTI Alert")) && isUserMemberOfGroup("Tier2"))
-
You also have to use @ComponentImport for the second bean.
-
You would need a plugin like Power Scripts or ScriptRunner to call a transition in a script.
-
What is the error?
-
Kindly have a look at the following KB: https://confluence.atlassian.com/jirakb/changing-custom-field-types-in-jira-158357.html
-
You should develop a behaviour. You can find more info here: https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
-
Behaviours do not work with http calls
-
And what is the problem? You should add the Group Id field to your behaviour and add this script for the field. Do you have any errors?
-
You can use Fast-Track transition an issue post function to make a transition. You can find more info here: https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_fast_track_transition_an_issue
-
You would need to write a listener, which would listen to the update issue event. If you have Power Scripts or ScriptRunner plugin, then you can do it.
-
The error means that the action can not be performed. Do you have any validators or conditions in the action?
-
You can create a new role and include yourself in the role. Then add this role everywhere in the project notification scheme, where watchers are included. You will have the desired behaviour.
-
The problem is that the default level for the Scriptrunner is Error that is why you can not see messages with the info level. You have several choices 1. Go to Logging and Profiling and set the Info level for com.onresolve package. You will be able to see your logs. 2. You can set the Info level in your script: import…
-
That is a problem with flickering errors. You have to reproduce the error and have a look at what happened in the Developer Tools.
-
I guess this solution must save date and time. Is your Date Closed custom field the Date Time custom field? There are actually two types of custom fields: Date Custom Field and Date Time Custom Field. Kindly make sure that you chose the Date Time Custom Field.
-
It is a static compilation error. Just run your script