Hi
When the principal changes, how would I get the previous value? We need because in automation rules we need update the previous principal issue.
Regards
Hi @Angel
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
Is "principal" a custom field in your Jira project?
If so and your rule is triggered on a change to the field, the {{changelog}} smart value will help find the previous value: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--
If instead you want the previous value with any other rule trigger, you will need to either:
Kind regards,
Bill
Hi @Bill Sheboy
We have Jira/Cloud, in branch with principal issue (parent) a use a lookup with query that search by "parent = {{key}}" for create a list of secondary issues in the parent issue. But when a secondary issue is removed I need update this list in the parent issue so I need the previous parent key to create my query, or maybe is possible create a query that get the list of secondary issues?
I said "secondary issues" because that arent sub-task issues, we have premium plan so we create others levels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, and I believe I understand the scenario: when the parent of an issue is removed (or changed) you want to update the previous parent's fields.
Is your rule triggered on a change to the parent field? If so, the {{fieldChange}} smart value will help: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--
For example, to access the previous parent's issue use a branch on JQL. You may add another branch for the current value of the parent field, if needed
UPDATED: I re-tested this and the {{changelog}} smart value no longer works with the parent field. Please use the {{fieldChange}} one instead. I have updated the above suggestion.
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.
I am glad to learn that helped!
One more thing to consider: what happens if the previous value is empty? That can be handled by adding a Smart Values Condition before the branching attempt.
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.