Hi,
Is there any wo to copy a value from the custom field in the previously created ticket to the new one by incrementing 1
Hi @Ahsan Riaz
The only way I can't think of this to happen is by using either scriptrunner of JMWE. With the latter you can create a listener which will find the value of the previously created ticket and increase it by one.
On second thought maybe you could do that with Jira AUtomation as well but you have to use smart values. The idea is:
{{issue.key.substringAfter("-")}}
{{issue.key.substringBefore("-")}}-{{issue.key.substringAfter("-").asNumber.minus(1)}}
{{lookupIssues.PlannedStartDate}}
Follow the rule I made below which for now it only logs just the value and nothing more, and it works fine:
From then on, if your value is numeric then on the smart value do .plus(1). If it's a text convert is first to a number like I did previously. Let me know if that worked out for you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.