Forums

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

Automation setup to update Status and Epic Status in an Epic isn't working

Aimee Davies
April 26, 2023

Screenshot 2023-04-25 at 5.57.11 PM.png

Hi everyone

I was wondering if anyone can help me. I want to be able to routinely run an automation that goes through my epics and if all child tasks are either marked closed or done, then update the fields for the Status and Epic Status of the epic those child tasks live under.

The screengrab is my current setup, I haven't used Additional Fields before and I'm not sure where in my syntax (or any other part of the overall setup) is causing the whole thing not to work. 

Notes - customfield_11602 is apparently the ID for my Epic Status field, I found that by hovering over and seeing what ID displays in the url at the bottom left of the screen. Same for the Status ID (6 being done in my project).

The purpose of this automation setup is to run every week so the Epic Pane in the backlog is clear of Epics that are essentially finished but not removed because of Jira finickiness. 

Thanks in advance for any help!

1 answer

0 votes
Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2018

ey,

If you are trying to do this using the Java SDK, it uses the ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser() method.

Refer to the docs at 

https://docs.atlassian.com/software/jira/docs/api/7.6.1/index.html?com/atlassian/jira/component/ComponentAccessor.html

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/security/JiraAuthenticationContext.html

Hope that helps. 

zhaoyawei
June 11, 2018

How does jira get the current  password?

Alexey Matveev
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 Champions.
June 11, 2018

@zhaoyawei You would need to elaborate what you mean. Answering your question, Jira gets a password from user input. But I guess, it is not what you are asking.

zhaoyawei
June 11, 2018

Click button in the jirra system I want to pass the user's name and password,I was jira's secondary development call interface requires a user name and password.

Nic Brough -Adaptavist-
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 Champions.
June 12, 2018

It is still not clear what you mean.  What is a "secondary development call interface"?  What do you mean by "pass user's name and password"?

But, I suspect you might be thinking that Jira has the user's password stored somewhere so you can use it for a log-in to something.  That is a totally insecure thing to do and Jira never stores passwords.  So there is nothing to "get"

If you could explain what you are trying to do, we might be able to explain how.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events