Hi,
I am not a developer but I pretend to be when using Scriptrunner. I need to set a custom date but then not overwrite it if the issue moves through the transition again. Capture the current timestamp and then not overwrite. I was able to use the following but it sets the start date as the day before.
issueInput.fields.customfield_10703 = new Date().format("yyyy-MM-dd")
Any assistance is much appreciated.
Regards,
Sharon
I would create 2 transitions which is same except the data field update and an extra space in the name of one.
Then would apply different conditions on both the transitions.
One transition will be visible when that customfield10703 is empty and the other transition will be visible with the field is not empty.
In the cf10703 empty transition, i will set the value.
See whether this instructions suit your requirement as well.
Hi @Fazila Ashraf,
Your solution was elegant and simple. Thank you for steering me in the right direction.
Regards,
Sharon
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.
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.