youngmon/atlassian-qna huggingface dataset:
Jira automation of Original Estimates report
Asked by Olga Mocan:

Hi everyone!

I need to create a report of Original Estimates given for tasks that are in an active state now, for each department we have in the company.

So, basically, I need to compare how many tasks overall we have and how many of them have original estimates.

Thank you in advance!


Answers:
author: Mykenna Cepek
body: I'd start by going into the "Issue" screen for any Jira project you have, and click on "Go to advanced search".

There you can use JQL to make custom searches across all issues in any of the projects in Jira. For example, searching for:

```
originalEstimate is not empty and statusCategory = "In Progress"
```

will give a list of all issues, in all projects, which are "active" and have an Original Estimate value. Note, that will probably be a LOT of issues. There are limitations on how many issues can be returned, and how many will be shown.

Note that the number of issues will be displayed after each search. So that's "the number of issues which have original estimates".

To discover "how many issues you have overall", remove the "originalEstimate is not empty and" clause.

You can restrict the results to a specific set of projects by adding something like this:

```
project in (Playground,Mykenna) and ...
```

In the resulting list of issues, you can use the "Columns" drop-down to adjust which fields are shown in the results. For example, you can show the "originalEstimate" field in the result.

Documentation about all the things you can do with JQL is [here](https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/).

Once you have JQL that locates the issues of interest, consider making a shared Dashboard in Jira or maybe a page in Confluence, configured to use that JQL. That way, those who want this information can "self-serve" and look it up whenever they want it.

comments: author: Olga Mocan
body: [@Mykenna Cepek](/t5/user/viewprofilepage/user-id/3527113) thank you for your answer, it was very helpful!


author: Bill Sheboy
body: Hi [@Olga Mocan](/t5/user/viewprofilepage/user-id/4548804) -- Welcome to the Atlassian Community!

You posted this question in the automation area, and I wonder if that is what you wanted.

To just list/count the issues you could either use a JQL query or create a dashboard to show the issues returned by the query. If you needed this to occur repeatedly you may also "subscribe" to a save JQL query to have it email you on a schedule.

For example, you could use one query for all tasks for a department. Let's assume you have a custom field called Department. (Please change this and your project names and how you distinguish departments.)

project = *myProjectName* AND Department = *myDepartmentName* ORDER BY Key

To find the ones with an Original Estimate, just add that condition:

project = *myProjectName* AND Department = *myDepartmentName* AND originalEstimate IS NOT EMPTY ORDER BY Key

Kind regards,  
Bill

comments: author: Olga Mocan
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) thank you so much!


Tags: original-estimate

report
Automatism for WBS Gantt-Chart
Asked by Erica De Matteis:

Is it possible to create an automatism that allows me to automatically update the WBS Gantt-Chart of Jira?  
For example, if I update the status from to do in progress, I would like the start date of the WBS Gantt-Chart to be updated. In the same way, if I insert a due date based on the story point estimation, I would like to establish a baseline that is automatically filled in in the part related to the WBS Gantt-Chart.


Answers:
author: Gabriel Quadros
body: Hello, [@Erica De Matteis](/t5/user/viewprofilepage/user-id/4623423)

Thank you for contacting us and creating this Community Question.

WBS Gantt-Chart does not support automation rules within the plugin.

For more information about our product, please check out our [Documentation page](https://docs.ricksoft-inc.com/index.html).

If you need assistance with our plugins or have any other questions, please, contact us anytime at [Ricksoft-Support.atlassian.net](http://Ricksoft-Support.atlassian.net). I will be happy to help.

We wish you a great day!

Kind Regards,  
Gabriel Quadros \| Support Engineer  
Ricksoft Support Team


author: Bill Sheboy
body: Hi [@Erica De Matteis](/t5/user/viewprofilepage/user-id/4623423)

That is a marketplace addon app, correct? If so you may want to check their documentation, or ping their support, to learn if their data can be updated via automation rules.

Kind regards,  
Bill


Tags: addon-jp.ricksoft.plugins.wbsgantt-for-jira

gantt
Copy field priority from initiative to epic
Asked by Ori Lazar:

HI

I am trying to do automation in Jira cloud that copy the value from "priority" field in the initiative to the same field in the epic below the initiative.

parent = initiative

epic = child

thanks


Answers:
author: Rick Olson
body: Are you trying to copy the priority field from the initiative to the epic when trying to add the epic, or when updating the initiative you want it to also update the epic?

comments: author: Bill Sheboy
body: Hi [@Ori Lazar](/t5/user/viewprofilepage/user-id/2412405)

Yes, and...to what Rick asks:

Or are you trying to do both? That is, keep the Priority field in sync between an Initiative and its child Epics?

Kind regards,  
Bill


author: Ori Lazar
body: HI [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) [@Rick Olson](/t5/user/viewprofilepage/user-id/3741809)

when updating the initiative I want it to also update all the epic's below it

thanks


author: Rick Olson
body: ![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170599iE6037C763643D6BE/image-size/large?v=v2&px=999 "Capture1.PNG")![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170600i6E664E6CED4DB4C7/image-size/large?v=v2&px=999 "Capture2.PNG")![Capture3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170601i2F7E458377FEAE15/image-size/large?v=v2&px=999 "Capture3.PNG")

comments: author: Ori Lazar
body: Thanks I will try it


author: Becci Watson
body: I tried it and it doesn't work


author: Carrol Patterson
body: How do you do it the other way?

When creating a new epic, I want an automation rule to copy the parent initiative field values (wsjf fiields) down to the child epic just created.


author: Bill Sheboy
body: Hi [@Carrol Patterson](/t5/user/viewprofilepage/user-id/1455040)

I posted an answer to your question in the other post here: <https://community.atlassian.com/t5/Automation-questions/When-creating-a-new-epic-I-want-an-automation-rule-to-copy-the/qaq-p/2341016>

Kind regards,  
Bill
How can I change a task in another project when the task status changes?
Asked by Nikolay Belozerov:

Hello,

How to change the status of a task in the project "Project1" when the associated ticket from the project "Project2" with the type epic and with the relation "is cloned by" or "clones" to the corresponding task from "Project1" is transferred from the status of deploy on prod to the status done.


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Nikolay Belozerov](/t5/user/viewprofilepage/user-id/4642413)

Please check my answer in similar question few days ago - <https://community.atlassian.com/t5/Jira-Software-questions/Status-in-project-1-workflow-to-transition-status-in-project-2/qaq-p/1864346>

Regards,

Seba

comments: author: Nikolay Belozerov
body: Thank you


author: Sebastian Krzewi?ski
body: [@Nikolay Belozerov](/t5/user/viewprofilepage/user-id/4642413) if my answer resolve your problem please accept my answer. This will be helpful information for someone who will struggle with the same case.


Tags: jira
Table RULE_STAT_ROLLUP_DAY missing from database.
Asked by Matthew Christiansen:

Hello my company is planning on upgrading our Automation for Jira managed app from 6.0.2 to 7.3. As per the instructions (<https://confluence.atlassian.com/automation/upgrading-to-automation-for-jira-7-3-1055951956.html>) changes to the database are required. But an issue we're running into is that our prod database is missing the AO_589059_RULE_STAT_ROLLUP_DAY table. The database is a SQL Server and its a Jira Server instance. Any ideas as to why this table is missing? Our staging env runs is on automation for jira ver 7.2.2 and the table is present there.


Answers:
author: Bill Sheboy
body: Hi [@Matthew Christiansen](/t5/user/viewprofilepage/user-id/3071175)

First off, I am using Jira Cloud, not Server/Data Center. With that out of the way...

I recommend asking your site admin to contact Atlassian support directly for this symptom: <https://support.atlassian.com/contact/#/>

Some other posts seem to indicate that table is used for automation audit logging, so I am unclear how rules could work without it.

Kind regards,  
Bill


Tags: jira-server
How do I use IQl statement with dates
Asked by Fredrik Ottosson:

Hey

i'm trying to automate a feature in insight that changes an attribuite called status when a specific time has passed without any updates i have tried using the Iql statement "updated \<= now(90d). The issue I ?n having is getting insight to recognize when an objectyype havent been updated in a certain time period, does any1 know how to write an Iql statement that works for this.


Answers:
author: Tessa Tuteleers
body: Hi [@Fredrik Ottosson](/t5/user/viewprofilepage/user-id/4638763) ,

Welcome to the community!

You IQL statement does what it it supposed do do, but I don't think it is what you want.   
Your statement says: "Give me all objects that have been updated before 90 days in the ++future"++, which makes it of course every object you have.

You might want to try this:

```
"Updated" < now(-90d)
```

Which means, "Every object updated before 90 days ago"

Hope this helps!

- Tessa

comments: author: Fredrik Ottosson
body: I did and it works now, many thanks Tessa ?


Tags: insight

iql
Populate the Done Date field with the Release Date of an assigned fix version
Asked by ahiggins:

I've been trying to set up an automation rule that populates the Done Date field with the release date of the fix version once it is assigned to a ticket.

I can't seem to get it to work- can someone advise how to set up this automation?


Answers:
author: Bill Sheboy
body: Hi [@ahiggins](/t5/user/viewprofilepage/user-id/4429181)

Would you please post an image of your rule? That may give the community some context to help. Thanks!

For the attributes of a version, please look here to learn what is available:

<https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvaluesgeneral---issue.fixVersions-->

And note that fixVersion is a [list field](https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/), so if you have more than one value in it that will need to be handled also.

Kind regards,  
Bill

comments: author: ahiggins
body: I actually kept googling and stumbled upon this thread- I believe my query is working now \& this answered my question!

<https://community.atlassian.com/t5/Jira-Software-questions/HOW-TO-Due-date-Release-date/qaq-p/1641812>

Appreciate the reply nonetheless!
Automation rule to update parent issue due date to the latest due date in subtasks?
Asked by Mariano:

Hello! I am trying to achieve a rule that will update the Parent Issue due date, to the latest due date of any subtask created.

Being the noob that I am, I tried the following:

![688.png](https://community.atlassian.com/t5/image/serverpage/image-id/169481i54BF026792263CF9/image-size/large?v=v2&px=999 "688.png")

I managed to **Pick** a date and make it be the Parent Issue due date if the subtask date changes and is later than the Parent Issue due date, however, I am having trouble making the subtask due date become the Parent Issue due date.

Any help would be greatly appreciated!


Answers:
author: Gareth Cantrell
body: Hi [@Mariano](/t5/user/viewprofilepage/user-id/4136026)

In branch rules, the {{issue}} smart value refers to the issue that the branch is executing on, in your case, the parent issue.

To refer to the issue that triggered the rule when inside a branch rule, use {{triggerIssue}} instead.

In short, your condition should be: **{{issue.duedate}} is less than {{triggerIssue.duedate}}**

Similarly, in the Edit issue action, use **{{triggerIssue.duedate}}** to set the parent issue field.

comments: author: Bill Sheboy
body: Hi [@Mariano](/t5/user/viewprofilepage/user-id/4136026)

Yes, and...to what Gareth and Fabian suggest:

Does this ever happen...How do you want to handle the case when all sub-tasks' due dates have changed such that they are now all \*earlier\* than the before? (And so the Parent is later than the actual set of children.)

One way to address this for sub-tasks is to use the list functions instead, finding the max() value of the due dates for any sibling sub-tasks, and set the parent to it.

<https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/#Smartvalueslists-list.max>

Kind regards,  
Bill


author: Mariano
body: Thanks [@Gareth Cantrell](/t5/user/viewprofilepage/user-id/3178836) and [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) ! I will look into this as it seems the most sensible path to take.

[@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) YES, I haven't thought about it. Thanks for pointing out to the right direction! I always admire people who forsee things, and I try to learn as much as I can from them (and you!)

I will read certainly read about these functions on my lunch break, thanks again!


author: Mariano
body: Thank you [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) , it worked **perfectly**!!


author: Fabian Lim
body: Hi [@Mariano](/t5/user/viewprofilepage/user-id/4136026)

Try using the "create variable action" and put the {{issue.parent.dueDate}} as a new variable before you branch out. Then when you compare and edit, add the new variable.

link: <https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Create-variable-New-component/ba-p/1448118>

Regards.

comments: author: Mariano
body: Fantastic, thank you [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) will be looking into this today! Thanks!


Tags: due-date

jira
How to make the "Change completion date" populate in the ticket as a custom date picker field?
Asked by Jerin Geevarghese:

I created Automation rules to create sub-tasks within the main issue tickets (tasks).

These are the fields (image) I selected that should automatically pre-populate on these sub-tasks tickets.

The due date has been set \& appears on the ticket (An estimated due date as per process) - By setting it as --\> {{now.plusDays(2).toBusinessDay()}}

But I would like the "Change completion date" to be set as a custom date picker field that the end user can select when they actually completed the task. (Cannot use above formula as the completion date is subjected to change based on how long the process takes). How can I incorporate this?  
If this is not possible, what other fields can I select to be used as a prepopulated end date field for the task?

Thank you in advance![Process automation.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/169366iF60993CD324D27DB/image-size/large?v=v2&px=999 "Process automation.PNG")


Answers:
author: Curt Holley
body: Hi [@Jerin Geevarghese](/t5/user/viewprofilepage/user-id/4634302)

I'm with [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) on this one....unsure of what you are asking.

If, as you say "*I would like the "Change completion date" to be set as a custom date picker field that the end user can select when they actually completed the task"* then the field appears to exist. If you want people to populate it, then it just needs to be added to the relevant screen/s (if it isn't already?) and not automation required.

Do I have this right?


author: Bill Sheboy
body: Hi [@Jerin Geevarghese](/t5/user/viewprofilepage/user-id/4634302)

I am unclear what you are asking. Would you please clarify a bit:

* ***When***do you want to set the "change completion date": when the sub-task is created automatically, or later with manual input, or...?
* Why would you pre-populate this field, as it seems to be the date when work finished?

Kind regards,  
Bill


Tags: cloud

jira-software
Jenkins Trigger build on Bitbucket when merge branch
Asked by Sharma:

In the Bitbucket repository, added a webhook to trigger a Jenkins pipeline. There in the triggers option I have selected pull request-merge instead of repo-push.  
When I merge a pull request, the hook is triggered and 200 response comes back from Jenkins, but no build is triggered. Please just what changes needs to be done.


Answers:
author: Theodora Boudale
body: Hi [@Sharma](/t5/user/viewprofilepage/user-id/5441544) and welcome to the community!

We have no control over what happens on your server when the webhook request is successfully triggered and received. The Jenkins plugins for Bitbucket Cloud are not developed by Atlassian, so I would suggest checking the official page of the plugin you are using to see where you can report issues or ask for help with that plugin.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jenkins

webhook
I can't access my account - Removed the cookies , tried different browsers. Nothing
Asked by victorcstn:

My account is \[REDACTED\]  

I can't seem to access the account no matter what I try. Is it possible that my account is in a dormant state?

![Screenshot_5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/234924i4686C8B8BEE5A014/image-size/large?v=v2&px=999 "Screenshot_5.jpg")


Answers:
author: Ben
body: Hi Victor!

You should be able to login now. Your user account had not been logged in to via the UI since 2018 so our system marked it as de-activated due to being dormant, I've just re-activated it for you.

Please let me know if any issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

support
java.lang.OutOfMemoryError: Java heap space on Maven build step with testcontainers
Asked by Jelena Bun?i?:

I have error java.lang.OutOfMemoryError: Java heap space, when step maven build run. I have testcontainer and use postgres image. Some tests pass but in one moment error is java.lang.OutOfMemoryError: Java heap space.  
I try to set in definitions  

```
services:
  docker-with-large-memory:
    memory: 5120
    type: docker
```

and then in my step for build maven set  

```
size: 2x
services:
- docker-with-large-memory
```

but it doesn't work. Can anybody now what i need to do?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

You will need to either increase the maximum size of the heap, or look into your build process to see what is consuming so much memory.


Tags: bitbucket-cloud

cloud
How can I make a branch active
Asked by ccenvcvb:

By default bitbucket shows only active branches.

We have develop (main branch) and release branches.

The release branches are not shown even though these releases are still active.

Where can I mark those branches as active ?

Failing that, how can I make the "all branches" selection the default.

This problem did not exists in bitbucket server, it shows all branches by default


Answers:
author: ccenvcvb
body: How can I follow up on that issue without being confronted by other frustrated comments. I.e. only see Atlassian updates on an issue.

If I had known all the limitations of bitbucket.org up-front we would have seriously considered moving to github. We stuck with Atlassian because it was known to our users, but our users still have to cope with missing features and different behavior.


author: Theodora Boudale
body: Hi [@ccenvcvb](/t5/user/viewprofilepage/user-id/735045),

It is not possible to mark branches as active. Any branch that shares history with the repository's main branch but is ahead of the main branch by some commits that are not yet present within the main branch, is considered an active branch.

I'm afraid that it is also not possible to make the "all branches" selection the default. We have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-16775>

The request has been closed because it is unlikely to be worked on in the near future. However, you can leave your feedback there, as our product managers continue to monitor even closed requests.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Does not receive confirmation email when enabling 2FA
Asked by Brian Kidmose Andersen:

Hi,

we upgraded to premium, and i enabled 2 factor for my account. it ends with "check your email to finish 2-step verification"

However the email never arrives, hence 2FA is not enabled and i can not enable it for the rest of the organization.

br,brian


Answers:
author: Nikola Perisic
body: Hello [@Brian Kidmose Andersen](/t5/user/viewprofilepage/user-id/3285110) ,

First, check if the email ended in the different directory in your inbox.

If that doesn't work, this is happening when your email has been put on the suppression list on the Atlassian side.

To solve this, raise a ticket for Atlassian and ask them to remove the email from the suppression list.

I will also tag Atlassian here for a higher issue visibility.


Tags: atlassian

bitbucket-cloud

cloud
How do I construct a bitbucket pipeline such that several containers can use the same network?
Asked by arttu.taipale:

In my current pipeline configuration I have to build and run several docker containers in the same step due to the lack of an image container in the system, which other pipeline tools might have. Somehow it still doesn't let me connect the containers into the same network. I run my app frontend and backend with dependencies and do a quick health check on them with curl, and they seem to be fine. When I start the third docker container which contains E2E tests, I try and connect it to the same network that the frontend is in, using

```
network_name=$(docker inspect frontend | jq -r '.[0].NetworkSettings.Networks | to_entries | .[0].key')
docker run --network=$network_name tests
```

where frontend is the name of the container where frontend runs, and tests is the name of the image that has been successfully built for tests.  

How do I connect these images to the same network?


Answers:
author: Syahrul
body: G'day, [@arttu.taipale](/t5/user/viewprofilepage/user-id/5441323)

Welcome to the community.

Due to security reasons we no longer allow docker --network=host in Bitbucket pipeline

[Changes to make your containers more secure on Bitbucket Pipelines.](https://community.atlassian.com/t5/Bitbucket-articles/Changes-to-make-your-containers-more-secure-on-Bitbucket/ba-p/998464)

As mentioned in the page:
> network=host will no longer be allowed, there are a few other ways you can communicate between your code and containers.
>
> To still allow your containers and code to communicate please see the following guidance.
>
> If you need to communicate with a service running in docker from your build container, when starting the service provide it a port mapping using -p \<host-port\>:\<container-port\> you can then access the service using localhost:\<host-port\>.
>
> If you need to communicate from a service running in docker to a service running in your build container, when starting the service provide it the following host entry using --add-host host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL you can then access the service using host.docker.internal:\<port\>.
>
> If you need to talk between services running in docker, they have to be attached to the same docker network so you can address the services using \<container-name\>:\<container-port\> or consider using [docker compose](https://docs.docker.com/compose/overview/) to run the services which creates a custom network for the compose stack.

I hope this helps.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud