youngmon/atlassian-qna huggingface dataset:
Jiara Automation if there's no movement on the ticket after 12 hours
Asked by Gucci:

Hi Team

Good day and I hope you are doing well. Tried using this JQL - "Service Desk Origin" in ("Enterprise Sales Order","Enterprise Sales Support") and status = "Open" and not status CHANGED AFTER -12h and assignee is not empty - to capture all tickets with "Open" status and no movement, updates and changes made on the ticket after 12hours.

But for some reason some of the tickets would receive a notification after 4 hours instead of 12 hrs.

Thanks!


Answers:
author: Michel Neeser
body: Hi [@Gucci](/t5/user/viewprofilepage/user-id/1612754)

Did you already try executing the JQL in the advanced search? This way, you can test if the tickets which have been mistakenly matching the query are actually not included in the result.

comments: author: Michel Neeser
body: [@Gucci](/t5/user/viewprofilepage/user-id/1612754) Based on your answer above, I think what you are actually looking for is not "status changed after -12h" but "updated \< -12h". The former expression only looks at status changes (e.g. moving a ticket from "Open" to "To Do"), while the latter actually checks if *anything* changed in a ticket, including the assignee for example.

So, your query needs to be something like:

```
status = "Open" and updated < -12h and assignee is empty
```

This returns all open tickets which have not been modified in the last 12 hours and have no assignee.


author: Gucci
body: Hi [@Michel Neeser](/t5/user/viewprofilepage/user-id/1828853)

Got it! thanks - let me try this one and will get back to you right away. Appreciate your help !


author: Michel Neeser
body: [@Gucci](/t5/user/viewprofilepage/user-id/1612754) Please consider accepting the answer if it worked, maybe it is helpful for others too. Thank you!


author: Gucci
body: Thanks [@Michel Neeser](/t5/user/viewprofilepage/user-id/1828853) it worked!


author: Gucci
body: Hi [@Michel Neeser](/t5/user/viewprofilepage/user-id/1828853)

Thanks for looking into it. I already tried testing the JQL and was able to get results, but when I checked the ticket i got this results:

* it was assigned on May 12, at 8:18 am ut the notifcation was sent on May 13 at 6:03am (10hrs)
* 2nd ticket - it was assigned on May 11 at 1:19 am but notification was sent on the same day at 6:02 am
* 3rd ticket which I can no longer find since the status wa already changed - but when it was initially assigned after 4 hours a notification was sent

Goal is to sned notification to all tickets with"Open" Status and no changes- movement - made on the ticket acter 12 hrs a notification will be sent out and ticket should be assigned.

Hope you can help me. Thansk in advance
Automation Rule for Date change-->Status Change
Asked by shipra.singh:

When task reached Start Date, it will move from To Do to In Progress status


Answers:
author: KJ
body: Trigger: Scheduled - have it run every weekday in the morning. Run a JQL search to for your issues - Status = "To Do"

Condition: Issue Field condition. Field - Start Date equals Time of Execution.

Action: Transition issue to In Progresss.


author: Alex Koxaras _Relational_
body: Hi [@shipra.singh](/t5/user/viewprofilepage/user-id/5218608) and welcome to the community,

In Jira automation you can use the Scheduled trigger to check if the start date is the present day. And after that you add all the necessary conditions and action components you want. A simple rule could be

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

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

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

comments: author: shipra.singh
body: Thanks so much for the help !

But, this rule is not working


author: Alex Koxaras _Relational_
body: [@shipra.singh](/t5/user/viewprofilepage/user-id/5218608) I'm going to need a bit more of what the audit log states, in order to help you.
How to display all MR links in the epic from tasks
Asked by Reed Daw:

Hi all,

I want the epic to display all the MRs in each task that lives under the epic. Is there a way to automate this each time an MR is created?

Thanks!


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

What do you mean by "MR"?

comments: author: Reed Daw
body: Hey Nic, thanks for the response.   

By MR I mean Merge Request, but basically a "web link"  

When our dev team creates a merge request in git, it links back to the JIRA task ticket.   

My goal is to get all the merge request (git) links to also display in the epic if that is doable. ![Screen Shot 2023-05-17 at 12.42.17 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/257856i00FE9B2D5FF87C75/image-size/large?v=v2&px=999 "Screen Shot 2023-05-17 at 12.42.17 PM.png")
Use response from third party API?
Asked by Bill Horvath:

I have an automation that creates a polly in Slack by posting to the [polly API](https://docs.polly.ai/api/) when a new Jira issue of a particular type is created.

When the POST call succeeds, the response has valuable data in the payload. I'd like to add that data (or some parts of it) as a comment to the issue whose creation triggered the automation.

Is it possible to process a response in this fashion using the built-in features of the automation suite?


Answers:
author: Mikael Sandberg
body: It could, does the response have a reference to the automation that created the post? If not, does the response have a reference to the issue that created the post? If the response has a reference to the automation you can delay the automation until you get the response back and then use {{webResponse.body} to extract the information that you want to add in the comment.


Tags: polly

rest-api
How to update Parent User Story based on only select Sub-tasks within? (not all)
Asked by Dan H:

Hello, I would like to transition the parent User Story ticket based on the transition of CERTAIN select**custom sub-tasks** within it. For Example:

Only if ALL Alpha + Beta + Charlie sub-tasks are transitioned to DONE, then update Parent transition to READY. Delta sub-task should always be exempt.

So rule **should** trigger if:

* (Parent US = READY)
  * **Alpha** sub-task = **DONE**
  * **Beta** sub-task= **DONE**
  * **Charlie** sub-task = **DONE**
  * Delta sub-task = TO DO

However rule should **NOT** trigger if:

* (Parent US = NOT READY)
  * **Alpha** sub-task = **DONE**
  * **Beta** sub-task= IN PROGRESS
  * **Charlie** sub-task = **DONE**
  * Delta sub-task = TO DO


Answers:
author: Mark Segall
body: Hi [@Dan H](/t5/user/viewprofilepage/user-id/1299555) - How are you delineating the types of sub-tasks? Are these custom sub-task issue types or are you using some type of component/field/label to distinguish them? This will help in crafting a response.

comments: author: Dan H
body: Yes apologies, I will mention this above.

They are all **custom sub-tasks** as I thought having this would make this rule much easier to put together.

Sub-task types:

* Code sub-task
* Art sub-task
* QA sub-task
* etc


author: Mark Segall
body: All good - So, I would do something like this:

* TRIGGER: Issue Transitioned (To Done)
* CONDITION: Issue Type is one of (Alpha, Beta, Charlie)
* ACTION: Lookup Issues
  *

    ```
    Parent = {{issue.parent}} AND issueType IN (Alpha,Beta,Charlie) AND statusCategory != Done
    ```

* CONDITION (Advanced)
  *

    ```
    {{lookupIssues.size}}
    Less Than
    1
    ```

* BRANCH (Parent)
  * CONDITION: Status = NOT READY
  * ACTION: Transition Issue (To Ready)

Quick summary:

* Triggers on any issue transitioning to done
* Verifies the issueType
* Looks for other issues sharing the same parent that are NOT done
* Only proceeds if no issues are found
* Branches into the parent
* Verifies the parent is in NOT READY
* Transitions the parent to READY


author: Dan H
body: This works brilliantly and does exactly the job, thank you very much for your help with this!


author: Dan H
body: Just updating to say found an edge case in the flow that resulted in an error (below), but **resolved** by adding the following:

* BRANCH (Parent)
  * **CONDITION: Some Issue Types = Delta**
    * *Checks if Delta sub-tasks ++even exist++ for the Parent ticket*
  * CONDITION: Status = NOT READY
  * **CONDITION: Some Issue Types != Delta AND Status = Done**   
    * *Checks if Alpha, Beta, Charlie sub-tasks ++even exist++ AND are in Done*
  * ACTION: Transition Issue (To Ready)

*** ** * ** ***

The error was:

Transition issue  
Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status):  
\[Parent ticket ID\] (In Progress - 3)


Tags: child

parent

rule

status

sub-task

transition

trigger

user-story
Somar estimativa de tempo
Asked by Bruno Mello:

Ol? pessoal,

? poss?vel criar uma automa??o no item Pai para somar todas as estimativas de tempo preenchidas nas subtarefas?


Answers:
author: Bill Sheboy
body: Hi [@Bruno Mello](/t5/user/viewprofilepage/user-id/5215378) -- Welcome to the Atlassian Community!

Yes, that is possible, and there are several examples of this in community posts, and similar rules in the library for projects.

I recommend triggering the rule on several scenarios to help with accuracy:

* when an issue is created
* when an issue's time estimate is updated
* when an issue's parent changes

Please look at these smart values to get you started on creating the rule: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.timetracking-->

Kind regards,  
Bill
Can't get current date
Asked by Gilberto Vazquez:

Good afternoon, I am creating an automation and I try to set the current date (my field is date and time type) but the now functions throw me errors.

![Captura.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256212iAAA1C10F585F8ACE/image-size/large?v=v2&px=999 "Captura.JPG")![Captura2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256213iB1E5F31994CFBD7F/image-size/large?v=v2&px=999 "Captura2.JPG")![Captura3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256214iFF65E13DFA469CA0/image-size/large?v=v2&px=999 "Captura3.JPG")


Answers:
author: Gilberto Vazquez
body: ![Captura1.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256698i4610C3161D0F0FD7/image-size/large?v=v2&px=999 "Captura1.JPG")![Captura2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256699i84B0FBBA8058AD4F/image-size/large?v=v2&px=999 "Captura2.JPG")![Captura3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/256700i29BE485ADA4D40D9/image-size/large?v=v2&px=999 "Captura3.JPG")


author: Gilberto Vazquez
body: I have tried with the format, but the error remains. Even with the system format


author: Kelly Arrey
body: Hi [@Gilberto Vazquez](/t5/user/viewprofilepage/user-id/5133937) I think the smartvalue needs a format modifier as shown [**here**](https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html), e.g.,   

{{now.jiraDateTime}}

comments: author: Gilberto Vazquez
body: I have tried with the format, but it still takes as an error. Even with the system format


Tags: date

now
Automation Rule not running
Asked by Raj:

Hi,

We are using Jira 8.20.10 and wanted to check where we can review the Jira Automation logs.

We have 100's of automations and some users are complaining that their automations are not running and even after enabling "Allow Rule Trigger"

Any help would be appreciated.

Thanks,

Raj


Answers:
author: Dirk Ronsmans
body: Hey [@Rajesh](/t5/user/viewprofilepage/user-id/5068856)

Is there a pattern you can see regarding those rules?

* Always the same users?
* Same project(s)?
* Same rule(s)?
* Do these rules always fail or just sometimes?
* Do they fail or just don't run?

You should be able to go to the automation itself and see on the rule (audit) what is happening.

comments: author: Raj
body: Hi [@Dirk Ronsmans](/t5/user/viewprofilepage/user-id/124602) ,

Sometimes it's running and yeah, most of them are for same users and sometimes same projects. In Audit logs, It's showing up for the ones which are executed. Apart from this no errors, warnings nothing.


Tags: jira-software
Highlight items passed the due date in Kanban board
Asked by Paula Barrera:

Is there a way to highlight items in the Kanban board that haven't been solved by the end date on the Jira story?


Answers:
author: Mark Segall
body: Hi [@Paula Barrera](/t5/user/viewprofilepage/user-id/5214003) and welcome to the community!

You have a couple options:

1. Use card color functionality based upon JQL
   1.

      ```
      "End Date" < startOfDay()
      ```

2. Use automation to flag the issue which will provide the native visual indicator

If you're going with option 2, it would look something like this:

* TRIGGER: Scheduled (Daily)
  *

    ```
    s"End Date" < startOfDay() AND flagged IS EMPTY AND resolved IS EMPTY
    ```

* ACTION: Edit Issue (Flagged)
  * Impediment
Can we use Automation to overwrite the overview page
Asked by Cynthia Brind Amour:

Hi,

Can we create a rule to overwrite the Overview page when creating Confluence Space? We'd like to add onboarding information ...


Answers:
author: Sheerine Baucum
body: Hi [@Cynthia Brind Amour](/t5/user/viewprofilepage/user-id/3863531) Do you have a standard onboarding template that you're wanting to add to a space? Does it need to be made available in the overview to start or can it be a page in the page hierarchy?

Would love to hear more about your processes if you'd like to talk more about this please schedule time with me on calendly.com/sbaucum. Thank you!

comments: author: Cynthia Brind Amour
body: [@Sheerine Baucum](/t5/user/viewprofilepage/user-id/4751651) Morning!

We are looking to build a standard on boarding template to include when a new space is created... we would like it to included as the overview page...

I do have other questions so I will book a meeting for us to chat.

Best, C
How to disable Jira and Confluence access for a user using Jira Automation?
Asked by DileepN:

Hello,

I want to disable Jira or Confluence access for the users not login to the application for a certain time, for now, this is a manual activity and want to put some automation around this to avoid repetitive work.

Thanks

Dileep


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

Automation works (mainly) with issues, it doesn't have admin functions like user updates.

You will need to look to apps to do this sort of thing.

If you've got Scriptrunner and a Server/DC instance, <https://library.adaptavist.com/entity/deactivate-list-of-users> would be a good place to start!


author: Curt Holley
body: And for cloud, this is a simple but affective option

<https://marketplace.atlassian.com/apps/1222216/flexible-user-license-for-jira-cost-optimizer>
SonarQube scan results in Jira release through automation
Asked by KrishnaMohan:

Hi Team,  

I want to automate the SonarQube scan results/Sonar URL in the Jira release version through GitHub actions.  

Please let me know if there is anyways to automate adding at least Sonar URL in the Jira releases --\> Add workload.  

If anyone has a code or suggestions  

Regards,  
Krishna Mohan


Answers:
author: KrishnaMohan
body: <https://jira.atlassian.com/browse/JSWCLOUD-24212>


author: KrishnaMohan
body: I noticed there is a ticket around to it. I thought of REST API, but that ticket in the backlog  

<https://jira.atlassian.com/browse/JSWCLOUD-24200>


Tags: devops

featured-groups

github

jira

jira-core
Daily worklog
Asked by Asadullah Asalm:

Need help to execute this condition.

Condition "When a daily work log is more than 8 hours logged by any individual" send an email to "Person Name"


Answers:
author: Bill Sheboy
body: Hi [@Asadullah Asalm](/t5/user/viewprofilepage/user-id/3563154)

What have you tried thus far to solve this?

For example, if you have an automation rule please post images of the complete rule (showing your condition) and the audit log details showing the rule execution. Those will provide context for the community to make suggestions.

If you do not have a rule yet, you could try using the Work Logged trigger and the smart values for {{worklog}} to try this?

<https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Work-logged>  
<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--worklog-->

Kind regards,  
Bill
Enabling 2 step authentication impossible, I dont receive any mail so I can't finish the last step
Asked by David Jim?nez:

First I had my normal email, it didn't work, I changed my email to a new one, neither.

I had to create a new bitbucket with my personal email (the 2-step authentication process worked on this one), but I need my business email.

By the way, this all started because I already had it enabled but I bought a new phone so I had to disable it and re-enable it using the authenticator app on this new phone.


Answers:
author: Ben
body: Hi David,

I can see you have both MFA enabled on your Atlassian Account and 2FA enabled on your Bitbucket Cloud account, you will need to address this in both accounts to regain access.

We have a guide for this below - you will essentially need to reset your Atlassian Account first, then reset your Bitbucket Cloud account second before attempting to access Bitbucket Cloud:

* <https://confluence.atlassian.com/bbkb/how-to-disable-reset-2fa-on-bitbucket-cloud-and-atlassian-account-1236932929.html>

I've checked the email address you've raised this community post from and there is no blockage from our end, so you will be able to receive those reset emails without issue. You will just need to wait 24 hours to receive the email as a security measure (this cannot be overridden).

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Git clone on linux shell runner failed due to non-empty BITBUCKET_BUILD_DIR
Asked by Rey Yue:

This is the error message I get:

fatal: destination path '.../atlassian-bitbucket-pipelines-runner/bin/../temp/{my_ID}/build' already exists and is not an empty directory.

I think this is because I accidentally pushed an executable onto my git repo, and that git clone copied this executable, so not my build contain this object, and make every following git clone failed.

I want to clean out BITBUCKET_BUILD_DIR but the problem is when I put  
rm -rf "$BITBUCKET_BUILD_DIR"/\* under script of a step, it will not be run because the build setup step for this step already failed because of the failed git clone.


Answers:
author: Patrik S
body: Hello [@Rey Yue](/t5/user/viewprofilepage/user-id/5508740) ,

and welcome to the Community!

Based on your description, I assume you are using shell runners. These types of runners are executed in a shell session directly on the host, meaning that the working directory of the runner is an actual folder on the host machine.

With that in mind, you don't have to clean that folder as part of the step's script, but instead, you will need to manually access that path on the host machine and clean that directory. The path is the working directory of the runner as follows :

    <runner_working_directory>/<runnerUuid>/build

E.g.

    .\atlassian-bitbucket-pipelines-runner\temp\b609961f-891e-c872-c36b-f3f2c315d186\build

Could you try to clean up that folder in the host and run your build again?

Let us know in case you have any questions.

Thank you, [@Rey Yue](/t5/user/viewprofilepage/user-id/5508740) !

Patrik S


Tags: bitbucket-cloud

cloud
clone a repo using vb.net
Asked by ShannonRamirez:

I've done this before, just not recently without issue. I have a new computer and i'm trying to clone a repo using visual studio 2022. When cloning the repo i'm asked to log into Atlassian using a browser or an email and password. I'm chosing the email and password. I believe the email and password are correct. I downloaded firefox and went to Atlassian website and logged in with the email and password and was able to navigate to the repo. Anyway when trying to clone the repo in visual studio i get an error

Git failed with a fatal error. Authentication failed for <https://bitbucket.org/xxx/xxxxx.git/>

I've been able to follow these steps for several years with success. Any idea what i'm doing incorrectly. thank you


Answers:
author: Patrik S
body: Hello [@ShannonRamirez](/t5/user/viewprofilepage/user-id/1198014) ,

thank you for reaching out to the Community!

The usage of email and account password for git activity over HTTPS was deprecated a few years ago, and you should instead provide a username and app password on those fields, where :

* **username** : is your bitbucket account username. You can check/change your username on your [Personal Bitbucket Settings](https://bitbucket.org/account/settings/).
* **app password** : a token used to authenticate the git operations over HTTPS. If you haven't already, you can c[reate a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/).

In this case, could you try to authenticate again by providing the credentials as per the instructions above, and let us know how it goes?

Should you have any questions, feel free to ask.

Thank you, [@ShannonRamirez](/t5/user/viewprofilepage/user-id/1198014) !

Patrik S


Tags: bitbucket-cloud

cloud
jenkins-job-trigger | Jenkins configuration
Asked by Silvia Dom?nguez Pe?a:

Hello All,

I would like to know if there is an example of how to configure the Jenkins job with this trigger or if it is just to create a parameterized job.

Thanks in advance


Answers:
author: Patrik S
body: Hello [@Silvia Dom?nguez Pe?a](/t5/user/viewprofilepage/user-id/5508481) ,

and welcome to the Community!

I assume you are referring to the atlassian pipe [atlassian/jenkins-job-trigger](https://bitbucket.org/atlassian/jenkins-job-trigger/src/master/). That pipe uses the Jenkins remote access API to trigger a job in your Jenkins instance, so as long as you have the remote API working on your Jenkins instance, you should be able to use that pipe.

For more details on how the Jenkins remote API works, I would suggest taking a look at the following documentation:

* [Remote Access API](https://www.jenkins.io/doc/book/using/remote-access-api/)

You can test making requests to this Jenkins API locally, and once you confirm it's triggering the jobs, you can update the pipe [atlassian/jenkins-job-trigger](https://bitbucket.org/atlassian/jenkins-job-trigger/src/master/) in your pipelines to use the same parameters.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Silvia Dom?nguez Pe?a](/t5/user/viewprofilepage/user-id/5508481) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jenkins

pipes