youngmon/atlassian-qna huggingface dataset:
Story Due date Edits Auto Update Linked Tasks and Bugs
Asked by Donna Benton:

In my current project I just created an automation where a created story auto creates two tasks. I now need to auto update Due date on those tasks or any linked issues for that matter when the Due date changes on the trigger story.

I have been looking at posts and current automation rules found online but I can't seem to find one that actually fits this scenario. When creating the rule "When: Value changes for Due date" I am not finding a way to say only when the Due date of a story changes. In this scenario, a lead creates a story and linked teams get their tasks automatically populated. However, as oftentimes the scenario goes, the lead changes the Due date on the story and the linked teams are not aware of this and don't want to have to manually update all the tasks.

Anyone up for this challenge? I am sure it is simple, I'm just not able to see the forest through the trees.

Thanks everyone.


Answers:
author: Curt Holley
body: Hi [@Donna Benton](/t5/user/viewprofilepage/user-id/2420418)   
have you tried these? [Solved: Auto alignment due date between linked tasks (atlassian.com)](https://community.atlassian.com/t5/Jira-Software-questions/Auto-alignment-due-date-between-linked-tasks/qaq-p/2158897)

comments: author: Donna Benton
body: Hi [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) yes, I have but I need something specific to only the story Due date being edited. If the trigger for update is only that the Due date changes on linked issues then I will be getting edits from the tasks to the story. It is the story that dictates the tasks Due date.


author: David Blank
body: Hi [@Donna Benton](/t5/user/viewprofilepage/user-id/2420418) !

Could you implement like [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) suggested above, but after the Trigger add an "Issue Fields Condition" like this:

![Screenshot 2023-10-16 at 4.38.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/286576i2C3F889E66C43D21/image-size/large?v=v2&px=999 "Screenshot 2023-10-16 at 4.38.35 PM.png")


author: Bill Sheboy
body: Hi [@Donna Benton](/t5/user/viewprofilepage/user-id/2420418)

Adding to Curt's answer...

After the trigger, you could add a condition on issue type, and only proceed if it is a Story.

Kind regards,  
Bill
Jira Automation: Any way to create a pull request in GitHub when a Jira issue transitions?
Asked by Bikram Agarwal:

I'm currently working on an automation project whose goal is - automatically creating pull requests in GitHub when a Jira issue status transitions.

For example, say my Jira project ABCD has a story ticket ABCD-1234. Someone changes its status from "in-progress" to "qa ready". At that point, I want the Jira automation to create a pull request from feature/ABCD-1234 branch to qa branch in GitHub.

We already have [GitHub for Jira](https://marketplace.atlassian.com/apps/1219592/github-for-jira) installed. But only slightly related option it provides in automation is "Create branch in GitHub".

![Screenshot 2023-10-16 at 11.58.40 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/286571iBEA2E223FB40A82A/image-size/large?v=v2&px=999 "Screenshot 2023-10-16 at 11.58.40 AM.png")

Any way to make this plugin or any other to create a pull request in GitHub?  

Or better yet, any way to execute a shell script in the "then" part of the Jira automation.


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

You could try using the Send Web Request action to call the GitHub REST API function to create the PR.

For more information about calling a REST API function from a rule, please see this how-to article: <https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828>

Kind regards,  
Bill


Tags: github

pull-request

script
timing when an issue transitions
Asked by Kelsey:

Okay here is a big ask everyone. What I am looking to complete is the following:  

Either I script this myself which is possible (More work more hours)

OR

does anyone know this solution?

I want to create a timer for Jira. Say in our work management dealing with leads specifically I want so when a lead is going into a proposal and proposal is accepted an email needs to be created. Transitioning from Approval --- \> email drafting ---\> email sent My transition being email drafting. I want to collect the data from approval to email sent to say like (30 minutes)   

I can manually put this in and even in other workflow programs such as monday has timers.


Answers:
author: Jehan Bhathena
body: Hi [@Kelsey](/t5/user/viewprofilepage/user-id/5340607) ,

I'm sure I understand the use case here, do you want to schedule the transition or do you want to track the time taken during the transition.

If it is scheduling then [@Erin Quick-Laughlin](/t5/user/viewprofilepage/user-id/4299733) 's answer might work.

For time tracking a different road might need to be taken.


author: Erin Quick-Laughlin
body: So you want an email to go out 30 minutes after that proposal changed to the 'Approved' state?

You could create 1 job to set a property on the issue when it transitions to Approved, that stores the current time, or current time + 30 min.

\[Updated\]  
Then create a Scheduled job running every 5 minutes to check issues where that property is not empty, and then create \& fire off the email, then clear the property. It's not exactly 30 min, but it would be 30-35.   

Also, you can add your vote to this feature request: [AUTO-238 Support for delay / pause / wait step in automation rule executions](https://jira.atlassian.com/browse/AUTO-238)   

<br />
Released closed tasks within a set date
Asked by Stuart Jarvis:

Hi all,

I am looking to release closed tickets within a specific date range. i.e. September, but I am currently on 16th October. I therefore do not want to include Closed tickets from October in this release.

Can anyone assist with how I go about this?


Answers:
author: Tim C
body: Hi [@Stuart Jarvis](/t5/user/viewprofilepage/user-id/5341388)

FYI. The following JQL would always find all those which were resolved in the previous month (and not current month) ...

**resolved \> startofMonth(-1) AND resolved \< startOfMonth() ORDER BY resolved ASC**

*NB: You need to ensure your workflows are setting the "resolution" field whenever transitioning to a "completed" status so that resolved date field isn't empty..*

If you're trying to find items against specific "Releases" then you can combine with ***FixVersion*** searching - which includes some useful advanced functions ....

When used with the **=** and **!=** operators, this field supports:

* latestReleasedVersion()

* earliestUnreleasedVersion()

When used with the **IN** and **NOT IN** operators, this field supports:

* releasedVersions()

* unreleasedVersions()

I hope this helps?

Thanks,

TC.

comments: author: Stuart Jarvis
body: Thanks TC


author: Tim C
body: Hi [@Stuart Jarvis](/t5/user/viewprofilepage/user-id/5341388) - please accept the answer above so that question shows as solved.
Jira email on comment edit on an issue
Asked by Troy:

Hello, need some help with my below automation rule. This is working fine when a new comment is added to the Jira issue however if the comment gets edited then no email is triggered. What changes I need to make to accommodate that please?

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


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

Adding a new comment and editing an existing one produce two different events. And so there are two different triggers: Issue Commented and Comment Edited.

You could clone your rule and change the trigger to cover both cases.

Another option is to use the generic Issue Updated trigger, but that would require checking the changelog to determine which field changed (i.e., comments)

Kind regards,  
Bill

comments: author: Troy
body: Thanks Bill, I tested by copying the current rule and modifying it to handle edit trigger and that is all working fine now.

I would like to check the other option you mentioned as in when: issue updated, can you please create and share the automation rule screenshot for that taking Comments field of Jira issue as example?


author: Bill Sheboy
body: I am glad to learn that is working with two rules, and...I just learned something new...

Commenting on issues does not fire the generic Issue Updated event (and trigger), but it does apparently get picked up if a webhook is used (although I have not tried that).

I found a few open suggestions in the public backlog for this, most closed as "won't fix", and with no clear direction from the Atlassian team on how they want it to work.

I struck-out my earlier idea as that apparently cannot work with Issue Updated and Jira Cloud.


Tags: jira
Linking Vulnerability to a Jira Issue created by Automation
Asked by Ken Young:

I am creating a new Jira issue based information from the "[Vulnerability Found](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Vulnerability-found)" security trigger in Jira via Automation. I have all of the need information in the [{{vulnerability}}](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-security/) object, but what is unclear is how to actually "link" to the external system in the Jira ticket. Is there a particular custom field, or do I need to dive into REST/GraphQL to create the vulnerability link in the ticket? Thx in advance


Answers:
author: Bill Sheboy
body: Hi [@Ken Young](/t5/user/viewprofilepage/user-id/4596309)

Just checking if your question was answered from another channel. I did not find other information about this trigger and smart value, other than these suggestions:

<https://jira.atlassian.com/browse/AUTO-775>  
<https://jira.atlassian.com/browse/AUTO-968>

Perhaps work with your site admin to submit a ticket to Atlassian Support to see what information they can provide: <https://support.atlassian.com/contact/#/>

Kind regards,  
Bill
Webhook push event payload only contains latest commit
Asked by Lam Nguyen:

When working with BB push event payload (webhook), if a push event contains multiple commits, only the most recent commit shows up under 'changes' section.

I'm using bitbucketserver0721 so I wonder if it's by-design or I'm missing something here? The newer documentation does mentioned there are max 5 commits associated with the push event can show up, but this doc doesnt have that

[https://confluence.atlassian.com/bitbucketserver0721/event-payload-1115665959.html?utm_campaign=in-app-help\&utm_medium=in-app-help\&utm_source=stash#Eventpayload-repositoryevents](https://confluence.atlassian.com/bitbucketserver0721/event-payload-1115665959.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Eventpayload-repositoryevents)


Answers:
author: Ku?be
body: Hi [@lamhng](/t5/user/viewprofilepage/user-id/5538899)   

Welcome to the community!  

When using Bitbucket Server push event webhooks, based one my experience, only the most recent commits may appear in the payload, which is by design to keep it manageable.  

By using the REST API or adjusting your Bitbucket Server settings, you can effectively handle multiple commits in push event payloads.  

Hope this helps(:


Tags: bitbucket-data-center

bitbucket-server

data-center

webhook
New CI/CD Runtime and Increased Build Minutes Usage
Asked by Vadym Sydorenko:

Hi,

After reading your articles regarding the new CI/CD runtime, I concluded that if I want to stick to 1x/2x step sizes, I have only one option:

* Include the full IP addresses list in our network whitelist.

Otherwise, I must switch all our pipelines to 4x/8x step sizes.

However, will the switch to 4x/8x step sizes drastically increase the number of build minutes we use, and therefore require us to purchase more build minutes?


Answers:
author: Patrik S
body: Hello [@Vadym Sydorenko](/t5/user/viewprofilepage/user-id/5538268) and welcome to the Community!

The size of the step dictates how many build minutes it uses. A *2x* step uses twice the number of build minutes of *1x* steps. In the same way, *4x* steps use four times the number of build minutes of *1x* steps, and so on.

As for the IP ranges, on September 17th 2024, steps using *1x* and *2x* will be migrated to the new runtime. If you're accessing external networks that are protected by IP allowlisting from within your Pipelines, then by that date you'll need to update your firewall with the new IP address ranges as listed in the following documentation:

* [Valid IP addresses for Bitbucket Pipelines build environments](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments)

Those are the IP ranges from the AWS environment where Atlassian Cloud Infrastructure is executed, including the Pipelines. You can filter that JSON by the regions **us-east-1** and **us-west-2** , and **EC2** service :

```
curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="us-east-1" or .region=="us-west-2") | select(.service=="EC2") | .ip_prefix' 
```

However, if you prefer to use the smaller set of [atlassian-ip-ranges](https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Runtime) , those will only be available to *4x* and *8x* steps starting on September 17th. It's important to note that you only have to add this configuration for steps that must use the restricted IP range, so it's not necessarily all of your steps.

I hope that information helps! Should you have any questions, feel free to ask.

Thank you, [@Vadym Sydorenko](/t5/user/viewprofilepage/user-id/5538268) !

Patrik S


author: Aron Gombas _Midori_
body: In my experience, when we switched from "1x" to "2x", then every *actual* minute was accounted as two minutes.

Based on that logic, I would expect that "8x" consumes your minutes 8 times faster than "1x".


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

size

step
password reset email not sent
Asked by Dave Meikle:

I've been completely locked out since I implemented 2FA last year. Despite synching it to my phone's app it is never the correct number.

After many attempts to reset and login, I turned off 2FA (and it was confirmed) but after trying to login again, 2FA is still turned on and once again I'm not receiving the password reset emails after 24 hours.


Answers:
author: Syahrul
body: G'day, [@Dave Meikle](/t5/user/viewprofilepage/user-id/5535796)

Welcome to the community.

May I know how you enabled your 2FA and what errors you received when you tried to log in/reset?

I want to make sure what 2FA you are talking about since we have one for Atlassian and one for Bitbucket. A screenshot of the issue would help me identify that and assist you.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Can we delete old atlassiab-bitbucket.logs ?
Asked by TallaSreenivasaR:

Hi Team,

Please assist in Can we delete old atlassiab-bitbucket.logs ? as my Data center Bitbucket server FS occupied 95% , I have a doubt if I delete atlassiab-bitbucket.logs will it impact the System ?


Answers:
author: Ravina
body: Hi [@TallaSreenivasaR](/t5/user/viewprofilepage/user-id/5252824) Welcome to the Atlassian community.

There are no impact on the application deleting the old logs files from the back end server, generally logs files have a max size limit of 20 MB or as per the day once that is reached old file is renamed like atlassiab-bitbucket.logs.1, atlassiab-bitbucket.logs.2, atlassiab-bitbucket.logs.3, and so on and latest logs are getting added in the main log file i.e atlassiab-bitbucket.logs if your FS is full you can delete these \*.1 , \*2, \*3 log files and take a backup of them in your system or S3 bucket if possible before deleting so that you can check those in case require in future.

You can create a cron job to delete the old files in case this will be repetitive tasks to avoid the manual work.

Just don't delete the main log file, if that file size is large then you can open that file and delete the old content from that file to trim it and reduce the file size,


Tags: bitbucket-data-center

data-center
?????
Asked by ????:

SourceTree? Bitbucket??????????????????????????????????????????????????????????????????????????????????

?????

????????????

??????????

?????????


Answers:
author: Theodora Boudale
body: Hi [@????](/t5/user/viewprofilepage/user-id/5411224),

If I understand correctly, you are looking for your Bitbucket username.

You can find your username on this page (after you log in to <https://bitbucket.org/> on your browser):

* <https://bitbucket.org/account/settings/>

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not able to clone a repository with large files
Asked by Hossein Dehghani:

I have devices connected to the internet with a cellular network, with using ssh key I am able to clone small repositories with no large files. However, in the repository with large files, I get this error:  

<br />

ssh_dispatch_run_fatal: Connection to {------} port {}: message authentication code incorrect  
fatal: the remote end hung up unexpectedly  
fatal: early EOF  
fatal: index-pack failed


Answers:
author: Ku?be
body: Based on the error message posted: Could be an **\[ssh key\]** issue or a **\[network connectivity\]** issue.  

**Problem:** The SSH key being used might not match the one expected by the server.

* **Solution:** Verify that you are using the correct SSH key. You can check this by looking at the `~/.ssh/config` file on your client machine or by specifying the key directly with the `ssh -i /path/to/key` option.

++**Error Message**:++

* ssh_dispatch_run_fatal: Connection to {------} port {}: message authentication code incorrect  
  **fatal: the remote end hung up unexpectedly**   
  fatal: early EOF  
  fatal: index-pack failed

**Note:** ++*However if you were able to clone small repos, means that the ssh key is good and it down to a network connectivity issue.*++   

**Network connectivity Issue:**   

**Cause:** Network connectivity issues, such as unstable internet connections, network timeouts, or firewall restrictions, can cause the connection to drop unexpectedly.

**Solution:** Ensure that your network connection is stable. Check for any firewall rules that might be interfering with the SSH connection.

comments: author: Ben
body: Hi [@Hossein Dehghani](/t5/user/viewprofilepage/user-id/5537290)

If this issue is only happening on one network, but not another - I'd suggest troubleshooting this by using our documentation:

* <https://confluence.atlassian.com/bbkb/troubleshooting-network-issues-389778693.html>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
can't login
Asked by Yonggang Huang:

We couldn't log you in {#toc-hId--353337967}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.


Answers:
author: Ku?be
body: **If you're having trouble logging into Atlassian sites, try these steps:**

* **Disable Extensions**: Turn off browser add-ons that might block the referer header.
* **Adjust Browser Settings**: Ensure privacy settings aren't hiding the referer header.
* **Try Another Browser**: Use a different browser or incognito mode.
* **Clear Cache**: Clear your browser's cache and cookies.

<br />

**If you are are still having trouble logging into Atlassian please try these:**   

**Disable VPN/Proxy** : If you're using a VPN or proxy, try disabling it and attempt to log in again.  

comments: author: Ben
body: Hi [@Yonggang Huang](/t5/user/viewprofilepage/user-id/5484822)

I've just re-activated your account, it was disabled as you had not logged into it via the UI since 2018.

You should be able to login now :)

Cheers!

- Ben (Bitbucket Cloud Support)


author: Yonggang Huang
body: thanks. it works now.


Tags: bitbucket-cloud

cloud
[skip ci] Does not work on manual pipeline runs
Asked by Gajesh Bhat:

Hello Atlassian team,

We know that using the \[skip ci\] in the commit message does not trigger the pipeline on Bitbucket Pipelines when that particular commit is pushed to remote. But when you Run the pipeline manually using the Run Pipelines button in the pipelines tab, It executes the pipelines. Is this behavior expected or in-consistent ? The documentation isn't clear about this <https://confluence.atlassian.com/bbkb/how-to-skip-triggering-a-pipeline-build-using-skip-ci-label-1207188270.html>

![skip-ci-bb-pipelines.png](/t5/image/serverpage/image-id/333792i4DF3C3BF3AD5B157/image-size/large?v=v2&px=999 "skip-ci-bb-pipelines.png")

Best Regards,

Gajesh


Answers:
author: Robert Wen_ReleaseTEAM_
body: The \[skip ci\] directive is meant to bypass pipeline executions when a commit is performed only. It won't work when you manually execute a pipeline run.


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
Why my project is empty?
Asked by Stradonis:

I have a project <https://bitbucket.org/myteamworkishere/example_auto1/src> and commit this year (Date: Sun Jun 2 16:15:00 2024 +0200 ) to it but now when I enter it is empty


Answers:
author: Carlos Garcia Navarro
body: Hi [@Stradonis](/t5/user/viewprofilepage/user-id/5537545) - Welcome to the Community! Was this working before? Are there any other users with access to the repo, and if so, are they all experiencing the same?

In this other post, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) is providing excellent info on user management in Bitbucket, which may help troubleshoot this issue:

<https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-access-the-bitbucket-admin-area-and-view-Global/qaq-p/1729180>

comments: author: Stradonis
body: Thank you, but it is not a problem with access to the project, here I am missing some of the repositories that have existed for about half a year. I only have older repositories left.  
Recently, when I visit <https://bitbucket.org/> I saw these repositories and now I go and they are not there. Nothing has been changed since then.


author: Syahrul
body: G'day, [@Stradonis](/t5/user/viewprofilepage/user-id/5537545)

Welcome to the community!

It seems that your workspace admin has deleted the repo; hence, it's no longer available. I suggest asking your workspace admin about this.

Regards,  
Syahrul

comments: author: Stradonis
body: Hi. But I'm the workspace admin and I didn't delete anything. This is a bit strange and I'm worried about other existing repositories


author: Syahrul
body: Hey [@Stradonis](/t5/user/viewprofilepage/user-id/5537545)

If that's the case, navigate to workspace settings \> Audit logs. You should be able to see who deleted the repository.

Also, for your information, only the admin of the repo, project, or workspace can delete the repository.

Regards,  
Syahrul


Tags: cloud
My bitbucket account is locked
Asked by Arjun V:

My bitbucket account is locked and I'm unable to receive any recovery emails. I have a recovery key but unable to use it.  
I enabled the two factor authentication for the bitbucket, but deleted the entry in the authenticator application. I lost the recovery codes as well.

Please help me recover my account


Answers:
author: Mark C
body: Hi [@Arjun V](/t5/user/viewprofilepage/user-id/5536745)  

Welcome to the community.  

I could see that your BB Cloud account's 2FA is currently disabled.  

Would you be able to confirm if you managed to disable it?  

Regards,  
Mark C

comments: author: Arjun V
body: Hi Mark,

Thank you for your message and the warm welcome.

I can confirm that I managed to disable the 2FA on my BB Cloud account myself.

<br />

Best regards,  
Arjun V


Tags: bitbucket-cloud

cloud