youngmon/atlassian-qna huggingface dataset:
How to add value from "remaining estimate" to date in "smart values" in automation ?
Asked by lukasz_skurczynski:

Hi,

I tried to solve my problem in 2 methods, but none of them works for me.

Problem definition:

Based on Start Date and Remaining Estimate fill value for End Date using only bussiness days for calculation.

Start Date and End Date - are custom fields in my jira, i know IDs of those two.

I stuck on reading date and translating it to number value to do math in smart value automation.

I tried this:

Edit Issue (action)

modify field - End Date:

formula:

{{#=}}{{issue.field.customField_ID(start_date)}} + ( {{issue.timetracking.timeSpentSeconds}} / 28800)}} ){{/}}

or:

Edit Issue (action)

modify field - Start Date:

set: {{now.toBusinessDay()}}

modify field - End Date:

formula:

{{now.plusDays({{issue.timetracking.timeSpentDays}}).toBusinessDay()}}

Is anyone here who can solve that issue for me ?

Regards

Luke


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

First thing, is "End Date" a custom field or do you instead mean the "Due date" field?

You are on the correct path with your second example: to increment a date value, use the plus functions in a rule: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-plus-unit--->

The values passed to the functions like plusDays() must be a number, so first confirm you have your values correct by writing them to the audit log.

For your specific scenario, you do not describe *under what conditions* you will use the Remaining Estimate to increment the Start date value. This is relevant as the remaining will decrease over time, and so pick a "baseline" point.

You also do not state if the final value of "End Date" should be a business day. (The increments could make it fall on a weekend.) If it needs to be a business day, add the toBusinessDay function to do so. <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Next-business-day--->

```
{{issue.Start date.plusBusinessDays(issue.timetracking.remainingEstimateSeconds.divide(28800)).toBusinessDay}}
```

Kind regards,  
Bill

comments: author: lukasz_skurczynski
body: Thank you for quick reply !

function works as intended.


Tags: cloud

date

smart-value
How to copy priority level from "Initiative" in Jira Data Center to all child issues (Epic, Task)?
Asked by Carson:

Looking to find a way to assign a priority level to an overarching project or "Initiative" as it is referred to in Jira and have the priority level of all issues associated with this initiative copy that same priority level. I have been able to do it successfully in Jira Cloud automation, but when looking at Jira Data Center, it doesn't seem that there is a way to easily relate Epics to the Initiative level. Was wondering if anyone had any ideas or had done something like this with the priority levels or any related field.

Thanks!


Answers:
author: Kalyan Sattaluri
body: You want to copy the priority of Initative to its child Epics?

If so,

* Are your initiatives \& Epics \& Tasks all in the same project?
* If not, when in automation, do you have an option to choose multiple projects in rule's scope?

comments: author: Carson
body: Yes, I would like to copy (automatically) the priority level of the initiative to its child epics and then subsequent tasks and sub-tasks. These are all located within the same project so the second question is a non-issue in this case.

I know this can be done through a bulk edit, but I am trying to have the priority of the initiative automatically populate the child epics and then tasks and sub-tasks after there is a change in the priority on the initiative level.


author: Kalyan Sattaluri
body: hello [@Carson](/t5/user/viewprofilepage/user-id/5423556) You mentioned you are in DC. how do you usually go about finding Epics for an initiative through JQL.. Do you have Scriptrunner or other add-on available..

Your rule is simple once you let us know that piece.


Tags: data-center
Count of specific value in JSON response array
Asked by Alex Relton Brown:

I am attempting to create an email notification that includes the number of failed tests in an Xray Test Execution Issue. (Xray is a test management plug-in for Jira). Unfortunately Xray-specific information such as Test Run results, whilst available in the Jira Issue UI are not part of any accessible Jira custom field.

I have an Automation Component that is sending a web request to the Xray API which returns the required information. I can then drill into that using a smart value that looks like this:

![jiraAutomationQuestion.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/304593iB3707757CB5FD21C/image-size/large?v=v2&px=999 "jiraAutomationQuestion.JPG")

Is there any way I could I then count the number of 'PASSED's and 'FAILED's?


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

Without seeing your complete rule...I suspect you could use the match() function with a regular expression to search the response, producing a list of matches:

<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match-->

Then using the list function size you would get the count:

<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.size>

Kind regards,  
Bill


author: Kalyan Sattaluri
body: Hello [@Alex Relton Brown](/t5/user/viewprofilepage/user-id/5423483) welcome to the community.

Can you share what do your raw response look like, screenshot is not JSON.
Original Due Date as first value provided for Due Date
Asked by karolina_kordos:

Hi,

I would like to set an automation that will populate into custom field "Original Due Date" field value from Due Date, but only when it was first provided (initially planned).

Meaning:  
Due Date field was empty and Due Date field value is updated for the very first time, the value of Due Date should be populated to "Original Due Date" field.

I have created a rule that copies Due Date to "Original Due Date" when issue is created, however Due Date field is not required, therefore this rule is not sufficient, as Due Date might be provided later.

I do not want to update Original Due Date when Due Date is updated (when value was once provided).

I am wondering if there is possibility to get to such smart value that holds information about first ever due date provided for issue?


Answers:
author: karolina_kordos
body: I managed to do this with a help of this article:   
<https://confluence.atlassian.com/automationkb/automation-for-jira-how-to-create-a-rule-that-is-only-executed-if-a-field-was-set-from-an-empty-value-to-a-non-empty-value-1189494740.html>


author: Paul O
body: You could simply add a check to your automation to check whether 'Original Due Date' is empty and only copy the value over if it is.

See example below (In my example I copy 'Start Date' to a custom field called Date 1)

![Screenshot 2024-02-06 at 10.10.42.png](https://community.atlassian.com/t5/image/serverpage/image-id/304560i15C1B6E4F3373919/image-size/large?v=v2&px=999 "Screenshot 2024-02-06 at 10.10.42.png")
Tracking ticket status in previous and current sprints
Asked by Blacke???:

hello  
I'm using jira automation to create a  
I am trying to create an automation to increase the priority to HIGH if the ticket status is the same as in progress in the previous sprint and the ongoing sprint, how can I do that?

Thanks.


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

From what you described, I wonder if your rule could:

* be triggered on the sprint completion
* check for any remaining / in progress issues
* and update their priority, as needed.

To get you started on creating your rule, please refer to these documentation and example sources:

* <https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation>
* [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>

If you run into challenges with your rule, please post images of your rule and the audit log details, and explain what is not working as you expected. That will provide context for the community to offer suggestions.

Kind regards,  
Bill

comments: author: Bill Sheboy
body: Hi [@Blacke???](/t5/user/viewprofilepage/user-id/5423327)

Just checking if this answered your question. If so, please mark this one as "answered" to help others find solutions faster. If not, provide any additional information to help the community provide suggestions.

Thanks!
Can't get fix version value of trigger issue
Asked by sacha_rouzkhosh:

Hi everyone,

I have created an automation with the following actions:

* Upon the creation of an Epic with a specific component, Jira sets the fix version;
* Subsequently, child tickets are created, and Jira sets the labels using a concatenation system: "fixVersion of the Epic" + "_" + a certain variable.

It seemed to work well, but I don't know why I can't get the fixVersion value anymore.

**Here are some details about the configuration:**

![Screenshot 2024-02-05 at 10.32.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/304266i10410146E74F7533/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 10.32.11.png")

![Screenshot 2024-02-05 at 10.37.46.png](https://community.atlassian.com/t5/image/serverpage/image-id/304269iB480582BC64A414E/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 10.37.46.png")

**I also tried:**

![Screenshot 2024-02-05 at 10.38.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/304270iC8FCA32F381275FB/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 10.38.55.png")

**Here is the log detail:**

![Screenshot 2024-02-05 at 10.33.44.png](https://community.atlassian.com/t5/image/serverpage/image-id/304268iB0F37E70FE6A70C5/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 10.33.44.png")

Thank you very much for your assistance.


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

There are two challenges with your rule:

Your rule edits the issue and then tries to reference the field which was just edited. The rule cannot "see" those changes for later rule steps, as it still contains the values at the time the rule started. To use the changes later in the rule, a Re-fetch Issue action must be added after the edits.

Another possible cause of this symptom is the Issue Created trigger can fire so quickly that some of the issue data is not yet available to the rule.

The fix / work-around for this is to always add the Re-fetch Issue action immediately after the trigger. That will slow the rule down a bit, reloading the issue data before proceeding. Please try adding that action and re-test.

Kind regards,  
Bill

comments: author: sacha_rouzkhosh
body: Thanks a lot [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

The re-fetch fixed the issue.


author: Kalyan Sattaluri
body: I dont see you using your variables in branch, also can you confirm if your epic has a version when created?

So my first suggestion is to log {{issue.fixVersion.name}} before your branch to confirm that works,

second, put an if condition to check if you have a fix version, then you update child issues if it exists.

[Also for your variables, please update with fixVersion instead of fixVersions](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--:~:text=sections%20and%20lists.-,Available%20properties,-%7B%7Bissue.fixVersion.name)


Tags: fix-version

label

smart-value
Team member not receiving workspace invite
Asked by Sofia De Pina:

I sent a workspace invite to 2 users: One of them received it, the other didn't.   
Tried 4 or 5 more times, still nothing. But this user's email itself is working fine, and there's nothing in the spam folder.  

Checking the community questions, I noticed some people have this issue where the invite email bounces...??  
And apparently, I need to ask a question here to get someone to fix it...   

So... Please fix it..? Someone...?  


Answers:
author: Ben
body: Hi Sofia,

I have taken a look at your pending invitations, and can see that the user you've mentioned has not yet accepted the invite.

When checking in the backend, I can see that their mail server has rejected our email invitation with the following SMTP bounce error message:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy?
```

I have just removed the customer's email address from our suppression list. Please cancel the invitation and re-send it to the customer.

If they still do not receive the email, they will need to have their email administrator whitelist our Atlassian email addresses to prevent further blockages from their end - this is also highlighted in our [documentation](https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html):

```
noreply@am.atlassian.com
no-reply@atlassian.com 
noreply@mailer.atlassian.com
notifications-noreply@bitbucket.org
```

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Sofia De Pina
body: Thank you so much!!  
It's working now and the user has been successfully added to the workspace!!!   
Thanks for the prompt support!


Tags: bitbucket-cloud

cloud
How do I connect Scriptrunner code I write to Bitbucket
Asked by Jon Kocen:

I write Scriptrunner code for my Jira projects. How would I store my code in Bitbucket so I can keep revisions of the code?


Answers:
author: Charlie Misonne
body: Hi [@Jon Kocen](/t5/user/viewprofilepage/user-id/1305331)

Most Scriptrunner features in Jira allow you to either add the script as "inline" script or to provide the "path" to the script.

I always recommend using the path because indeed you can keep it in Git/ Bitbucket that way.

You should create a directory in your Jira home directory on the server called "scripts" for example (might already exist).  
Add all your scritps to this directory in individual files. Push the directory to your Bitbucket repo.  
Now you can convert the inline scripts to file path scripts in Jira scriptrunner.


Tags: data-center

jira

jira-data-center

jira-server

server
Trying to invite a new team member but after the invite I dont see a pending status.
Asked by Kevin F:

when i invite a new team member i do not see a pending status on my dash board. How do I know the invite actually went out?


Answers:
author: Syahrul
body: G'day, [@Kevin F](/t5/user/viewprofilepage/user-id/5556934)

I have reviewed this and confirm that the invitation email has been successfully dispatched to the user. It is possible that the email may have been inadvertently redirected to a different folder within the user's mailbox, such as the spam folder. I recommend checking any filters the user might have setup in their mailbox, as the email could have been filtered out.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

statuspage
ssl_dispatch_run_fatal: connection timed out
Asked by Wilbert Quijano:

Hi,

I followed the instructions from here

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-windows/>

But on the last part, I;m getting

ssl_dispatch_run_fatal: connection timed out


Answers:
author: Ben
body: Hi Wilbert,

Are you able to increase the timeout interval? That error message usually implies that the connection was closed due to timing out.

If you modify your **\~/.ssh/config** file and add these lines to the listing for Bitbucket, this should help:

    ServerAliveInterval 300ServerAliveCountMax 2

Please let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Wilbert Quijano
body: i did that and same thing


author: Ben
body: Hi [@Wilbert Quijano](/t5/user/viewprofilepage/user-id/5556741)

We'll need to see SSH logs, but this wouldn't be appropriate to share over a public forum such as community.

You are a member of a large, Premium paid workspace (starts with o) so you are entitled to private, dedicated support from our support team. Please raise a support ticket with us directly by entering this workspace URL when prompted for further assistance:

* <https://support.atlassian.com/contact/>

If you have any issues raising a ticket, please let me know and include your timezone so I can ensure it's routed to the correct support team location.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cleanup Issues with Symlinks in Self-Hosted Runners' Working Directory
Asked by HiSte:

Hello Community,

We are currently facing a challenge with our self-hosted Windows runner used in our CI/CD pipelines. Our setup involves using Gitman to manage dependencies, which includes creating symlinks within the working directory. Specifically, these symlinks point to other folders within the same working directory. It appears that the cleanup issues occur when the target folder of a symlink is deleted before the symlink itself (?), leading to `NoSuchFileException` errors- subsequently to an unhealthy state of the runner.

Here's a snippet of the log showing the issue:

```
[2024-07-29 22:15:13,432] Appending log line to main log.
[2024-07-29 22:15:13,763] Tearing down directories.
[2024-07-29 22:15:14,083] An error occurred whilst tearing down directories.
java.nio.file.NoSuchFileException: C:\<path_to_symlink_in_working_dir>\BurDefaultLibraries...
```

Currently, we manually delete the symlinks in the after-script section of our pipeline, which is a workaround but not an ideal solution. It adds complexity and reduces the readability of our pipeline code.

Has anyone else encountered similar issues with symlinks in self-hosted runners? Any insights or recommendations on how to handle or prevent these errors more gracefully would be greatly appreciated.

Thank you in advance for your help and suggestions!


Answers:
author: Theodora Boudale
body: Hi Stefan,

Thank you for reaching out. I was able to reproduce this on a repo of mine with the latest version of the Windows runner. Please allow me some time to discuss it with my team, and I'll get back to you on this.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi Stefan,

I discussed this with my team and it looks like a bug with the runner. I was able to reproduce this, but only when the name of the symlink comes after the name of the directory the symlink is pointing to in alphabetical order.

I created a bug report for our development team to look into this:

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

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on any updates. You can also select the **This affects my team** link to indicate you are affected by this issue. Please note though that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

In the meantime, deleting the symlinks in the after-script is the only workaround I found as well.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

runner

windows
I want to push my project from local to bitbucket
Asked by Aftab:

I want to push my project from local to bitbucket


Answers:
author: Nikola Perisic
body: Hello [@Aftab](/t5/user/viewprofilepage/user-id/5556142)

Have you configured your git with command: git config --global user.email \<your-email\>?

Before pushing the code to your Bitbucket repository, you need to use the several commands:

1. Git clone - clone your current repository that you previously created in Bitbucket
2. Git add \<name of the file\> or git add . for all the files that need to be added
3. Git commit -m "message goes here"
4. Git push

You will be prompted for OAuth authorization from Atlassian which you need to accept.


Tags: bitbucket-cloud

cloud
don't receive mail verification code
Asked by Qu?n Nguy?n Ho?ng:

while I'm trying to login to bitbucket by Microsoft account, i got "We were unable to verify the email associated with your Microsoft account, so let's do that now." message and no emails sent to me so that i don't have verification code. (I can't use support because i don't have workspace url suck as bitbucket.org/workspaceid)


Answers:
author: Julio Herrera
body: If you're encountering an issue logging into Bitbucket with your Microsoft account and receiving a message stating, "We were unable to verify the email associated with your Microsoft account, so let's do that now," but not receiving a verification email, follow these steps:

Check Email Filters and Spam: Ensure the verification email is not in your spam or junk folder. Also, check any email filters or rules that might redirect the email to another folder.

Resend Verification Email: Look for an option to resend the verification email. Sometimes, multiple attempts might be necessary.

Update Microsoft Account Email: Ensure that your email address in your Microsoft account settings is correct and verified. You can check and update your email settings by logging into your Microsoft account at account.microsoft.com.

Use an Alternative Email: If possible, add a secondary email to your Microsoft account and use that for verification purposes.

Clear Browser Cache: Sometimes, browser issues can cause problems with the login process. Clear your browser cache and cookies and try logging in again.

Try a Different Browser or Device: Sometimes, switching to a different browser or device can resolve login issues.

Since you can't use support without a workspace URL, if these steps do not resolve the issue, you might consider creating a new Bitbucket account with a different email address as a temporary solution.


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
No verification email after setting up 2FA
Asked by Jason Wu:

I have setup the 2FA with Authy but I didn't receive the verification email.

I have check my junk mail folder and it is not there.


Answers:
author: Nikola Perisic
body: Hello [@Jason Wu](/t5/user/viewprofilepage/user-id/5556004)

This is happening because your email has ended on the surpression list. Someone from Atlassian can help you out by removing your email from the block list. You can make a request here: <https://support.atlassian.com/contact/#/>

comments: author: Jason Wu
body: Thx, I will try to contact the support


author: Theodora Boudale
body: Hi Jason and welcome to the community!

Does this concern the Bitbucket account with the same email as your community account?

I checked our email logs and all the emails we have sent to that email address during the last 3 days have been delivered to your mail server. Your email address is not in any of our suppression lists.

I suggest checking your Spam folder, and also if there are any filters in your email account that would make our emails skip your inbox. If you still cannot find it, I suggest reaching out to the administrator of your mail server and asking them to investigate why our emails don't make it from your mail server to your inbox.

If this concerns a Bitbucket account with a different email address, please log in to community with the affected email and leave a comment here so I can check our logs.

Kind regards,  
Theodora

comments: author: Jason Wu
body: You are right, it is in the custom folder(due to custom filter) for Bitbucket email address. Thanks


Tags: bitbucket-cloud

cloud