Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update custom field of issues in lookupIssues

Meghanand Baraskar
Contributor
February 1, 2022

Hi,

 

I am using Lookup issues function within Jira automation to retrieve a set of issues. I then intend to edit a custom field for each of these issues. Can anyone help me with how to go about doing this?

My edit rule is as below where 'Effort Accounted' is the custom radio button field I want to set to 'Yes'.

Screenshot 2022-02-01 at 12.39.45.png

I get the following error in audit logs:

Screenshot 2022-02-01 at 12.44.16.png

The automation rule is as below (just for reference) and the highlighted step is what fails

Screenshot 2022-02-01 at 13.02.25.png

3 answers

1 vote
Daniel Alonso April 14, 2022

Use a branch rule to look up issue with JQL instead of an action.
You can then add the edit field action inside the branch.
If you need to, you can reference the issues via the {{issue}} smart variable.

In the screenshots below, I am looking up an issue with a specific key via JQL, and then updating its Story Points field, based on the sum of its subtasks Story Points fields.

Screen Shot 2022-04-14 at 4.47.02 PM.png

Screen Shot 2022-04-14 at 4.49.46 PM.pngScreen Shot 2022-04-14 at 4.50.05 PM.png

Aron Kuch
Contributor
June 20, 2024

Thank you, that seems to have resolved my issue.

1 vote
Hank
Contributor
February 14, 2022

Bump, trying to do the same thing.

edit a field in each of the issues returned from lookupissues

1 vote
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2022

Hi @Meghanand Baraskar 

If the field is not available in the drop down then you can use the addition field text area where you need to pass proper JSON. You can also use smartvalues there but the overall content should be a JSON. I suggest you to take a look at Jira REST API reference documentation to know more.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/

I hope it helps.

Ravi

Meghanand Baraskar
Contributor
February 1, 2022

Thanks @Ravi Sagar _Sparxsys_ I did try using the additional fields section (please see the 1st screenshot in the original message). The documentation I could find about using Lookup Issues only had examples of sending data of individual issues under look up issues to slack/email. I couldn't find any examples of how to edit individual issues under the look up issues list. Are you able to point me to any examples of how to edit individual issues under the Look up issues list?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events