On Jira Cloud I have a custom field (number) and would like to increment the value between a certain transition in the workflow. How can I do this? Do I just need to create a transition post function on a custom field?
Hi, if you want an old school way of doing this without an add-on or a script I did this:
I created a custom text field then added a post function to status change to add a field value with an 'I' and selected Append Value so every time it passes this state it add another 'I', this resulted in a field displaying 'IIIIIII'
I then used this in a report by exporting into Excel and using the =LEN(cell) to count the number of 'I's in the field.
Hello,
You would need an add-on for it.
For example, you could use the Power Scripts add-on:
You could write a post function with a code like this:
#{Your custom field name} = #{Your custom field name} + 1;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Craig Bucklow You need to use a 3rd party add-on like ScriptRunner for JIRA. You can use a Scripted Post-function (from this add-on) on your workflow transition and use the code here (Modify it as per your custom field)
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.