I need to increment a custom field by 1 on a post function. It is seemingly a simple ask, but I have some nuance that I cannot find an answer for.
I'm really struggling to figure out how to achieve this. I've read a dozen or so questions\replies related to this but none of them are exactly what I need. My assumption is that I need to use Scriptrunner to do this.
You can try using Jira Automation and add 1 to it everytime the transition is executed: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/
Regards,
Fabian
@Fabian Lim I don't think that works though because automation won't let me get as specific as I need. As I mentioned (and seen in screenshot) I have 2 transitions that both have the same starting and ending status. Automation does not let you specify a transition. It only lets you specify starting and ending status. (Unless I am overlooking something.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unless I am overlooking something, automation can only specify the from and to status. That doesn't work for me because I have 2 distinct transitions with the same "from" and "to". I need my automation to only apply to 1 of those. Which is why I think it needs to be a post function on the specific transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Kevin Christmann , you know how I did it:
on the transition where you want things to happen, I added a simple post-function to mark a custom field type select with just some value. I know this field doesn't change in any other situation.
Then, in the automation, I could use a trigger: when the field value changes to X, run through the action... :) and it works. Like this the system knows exactly when to do it :)
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.