When project TEST, any issue type, transitions to "In Progress" and custom field "Dropdown Field" = Option 1, there is a post function to "Clone an Issue, and Link".
Under "Additional actions", setting a custom field on the new issue returns as 'null' and does not set the custom field value. Yet, it works when using setting issue summary.
When I try to use issue.setCustomFieldValue, the logs return property id on null object. When I ONLY use issue.summary, the issue properly gets created and linked. When I try to add a log.warn, it returns the issue as null.
I've also tried "doAfterCreate" from this page and got "no signature of method" error.
Any reason why "issue.summary = 'blah'" works yet "issue.setCustomFieldValue(cf, 'value')" will not?
Hi @Diana Gorv
I have tried to replicate this issue in my environment, but I am not encountering this issue.
Below are the sample codes that I have tested with:-
1. For the conditions:-
issue.getCustomFieldValue('Sample List').toString() == 'Option1'
2. Additional issue actions
issue.set {
setSummary('Testing 123')
setCustomFieldValue('Sample Text', 'Testing value')
}
Hi, @Diana Gorv 👋
I moved your question to App Central, where questions about Atlassian Marketplace products, like Scriptrunner should be posted. Also, I added an additional tag to hopefully draw the right eyeballs to your post.
That said, I suggest you contact the Scriptrunner support team directly for a faster response time and resolution.
Best of luck,
-dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
P.S. If you do, it would be great if you'd come back and share the solution here so others can benefit in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.