youngmon/atlassian-qna huggingface dataset:
How can I show where an issue is in queue to the customer?
Asked by Janine Lim:

Is there a way to inform end users where their ticket placement is?


Answers:
author: Dan Breyen
body: Hi Janine, it's my understanding that by default, they would be able to see the status of their ticket in the Portal. Do you have some mechanism that you are using to queue up tickets? I'm not familiar with any default functionality of JSM that provides that functionality. If you are using a custom field to track this internally, there isn't a way to add custom fields yet into the portal. There's[a ticket](https://jira.atlassian.com/browse/JSDCLOUD-4328) for that task that you could vote for and watch for updates.

Hope that helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
Boarder-Bottom does not render if the {{#issues}} returnes nothing
Asked by Tom Scoggin:

I have 6 sections to an automated email. If the {{#issues}} returnes a value the bottom boarder of the above paragraph renders. If it does not return a value then it does not render the bottom boarder.

Here is how each section is layed out.

\<p style="border-bottom: 2px solid black; color:white; background-color:gray; font-size:30px;"\>\&nbsp;Needs Dev. Approval\</p\>

{{#issues}}

{{#if (labels.match("(DEV-APPROVAL)").size.gt(0))}}  
\<ul style="font-size:18px;"\>  
\<li\>\<strong\>\<a href="{{url}}"\>{{key}} - {{summary}}\</a\>\</strong\>  
\<ul\>  
\<strong\>\<li\>Description:\</strong\>\&nbsp;{{description.html.remove("\<p\>").remove("\</p\>")}}\</li\>  
\</ul\>  
\</li\>  
\</ul\>  
{{/}}  
{{/}}


Answers:
author: Tom Scoggin
body: Turns out it works just fine. When I view it in Gmail the boarder-bottom and spaces render correctly. They do not render properly using microsoft outlook.


Tags: data-center

jira-service-management

jira-service-management-data-center
Need a jira cloud automation to update the reporter from custom field which contains email
Asked by Manmohan Anand:

Hey Folks,

I have created a google form which creates JIRA ticket used by the sales team (They prefer creating tickets via Google form than JIRA). Since the script uses REST APIs which is authenticated using my tokens hence all the tickets which are created using google form has my name as Reporter.

I have the sales team email address in a custom field which I want to set as a reporter. Figuring our if there is any jira cloud automation exist which can update the reporter field using the email. Please note, all of these sales users have jira associated email.

Thanks in advance for the help!


Answers:
author: Ryan M
body: Hey [@Manmohan Anand](/t5/user/viewprofilepage/user-id/5232871)   

The only way I can think of to set users based on a custom field value would be advanced field editing using JSON. [https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/.](https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/) This requires the users ID, though, email is not sufficient.

You're going to need your initial script to run another API call before creation, and run a user search or find all users call (/rest/api/3/user/search) to get the accountID of the user you want to be the reporter. At this point, an automation becomes useless though. You now have the user ID and can set it as the reporter during your initial Create Issue /rest/api/3/issue API call.  

Personally I would just make them use a JSM form. Unless this preference for google is saving the business time/money/doing something valuable that it can't, developing custom scripting to do something that's simple and built in is just creating tech debt/advanced configuration to maintain.

comments: author: Manmohan Anand
body: Hey [@Ryan M](/t5/user/viewprofilepage/user-id/5340376) Thanks for your quick response. Yes I did add the user search by their email via the REST API call (/rest/api/3/user/search) which provided the accountId which later used in the script to set the reporter. It's working as expected.


Tags: automation

jira-cloud

jira-service-desk-cloud

jira-service-management-cloud
How do I copy all issues inside a project to another project via ScriptRunner?
Asked by Igor Zhigalkin:

ScriptRunner has an built-in script that allows to clone existing project, which copy all instances (issues, schemes, etc.).   
I need an option to copy only issues (in perfect scenario found by custom JQL search).

My usual routine is:

1. Create a project from a template

2. Copy (clone and move) all issues from "dull" project (issues are stages, epics and tasks) to a new one.

I want to automate step 2, which takes enormous amount of time and manual efforts.


Answers:
author: Ram Kumar Aravindakshan _Adaptavist_
body: Hi [@Igor Zhigalkin](/t5/user/viewprofilepage/user-id/5456532)

For your requirement, I suggest trying something like this:-  

```
import com.adaptavist.hapi.jira.issues.Issues
import com.onresolve.scriptrunner.canned.jira.utils.ConditionUtils
import com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.CloneIssue
import com.onresolve.scriptrunner.runner.ScriptRunnerImpl

def projectKey = 'EX'

Issues.search('project = MOCK').each {
    def issueToCopy = Issues.getByKey(it.key)
    def blockIntraprojectLinks = '{l -> l.sourceObject.projectObject != l.destinationObject.projectObject}'

    if (!issueToCopy) {
        log.warn "Issue ${issueToCopy.key} does not exist"
        return
    }

    def inputs = [
            (CloneIssue.FIELD_TARGET_PROJECT)       : projectKey,
            (CloneIssue.FIELD_LINK_TYPE)            : null,
            (ConditionUtils.FIELD_ADDITIONAL_SCRIPT): ["checkLink = $blockIntraprojectLinks;", ""],
            (CloneIssue.FIELD_SELECTED_FIELDS)      : null, //clone all the fields
            (CloneIssue.SKIP_EPIC_LINKS)            : "false",
    ] as Map<String, Object>

    def executionContext = [issue: issueToCopy] as Map<String, Object>

    def newClonedIssue = ScriptRunnerImpl.scriptRunner.createBean(CloneIssue)
    def updatedExecutionContext = newClonedIssue.execute(inputs, executionContext)

    assert updatedExecutionContext.newIssue
}
```

Please note that the sample working code above is not 100% exact to your environment. Hence, you will need to make the required modifications.

This code has been extracted from the [Adaptavist Library](https://library.adaptavist.com/entity/copy-issue-no-links) and modified slightly with the [ScriptRunner HAPI](https://docs.adaptavist.com/sr4js/latest/hapi) feature for simplification.

With the sample working code above, I can copy all the issues in the MOCK project to the Example, i.e. EX project.

Below is a screenshot of the code in the ScriptRunner Console:-

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

I hope this helps to solve your question. :-)  

Thank you and Kind regards,

Ram

comments: author: Igor Zhigalkin
body: Thank you very much, this code worked perfectly!


Tags: data-center

jira-service-management

jira-service-management-data-center

scriptrunner
I would like to move a project tile to another tile
Asked by Oluwaseun Adedeji:

Hello,   
I would like to ask how can I move a project from one place to another on the customer portal view.   
I would like to move the "Ad Hoc Cost Approval" to "Payroll"![Screenshot 2024-03-19 at 14.55.42.png](/t5/image/serverpage/image-id/313038iD94D337BAC636700/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 at 14.55.42.png")![Screenshot 2024-03-19 at 14.56.07.png](/t5/image/serverpage/image-id/313037iEF633BB16EA466CA/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 at 14.56.07.png")


Answers:
author: Ste Wright
body: Hi [@Oluwaseun Adedeji](/t5/user/viewprofilepage/user-id/5250926)

To do this...

1. Go to your Portal homepage
2. On the right-hand side, select the vertical *Customise*button
3. From the pop-out, select *Edit home page layout*
4. It looks like Payroll is in the featured section; to add Ad Hoc Cost Approval to this section, select the star icon in the top-right of the tile
5. Drag/drop it into position

**Note:** Drag/drop positioning is only available in the featured section. In the other section, the tiles can only be ordered by name (A-Z) or popularity.

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
Open a ticket
Asked by Dirk de Mello:

When opening a ticket, in the share with field, keep the default nobody.


Answers:
author: Dan Breyen
body: Hi [@Dirk de Mello](/t5/user/viewprofilepage/user-id/5456493) welcome to the community. There are few issues around this to hide the 'Share With', so it can't be used, thus sharing with Nobody. You probably want to vote for and watch them.

[JSDCLOUD-10455](https://jira.atlassian.com/browse/JSDCLOUD-10455)

[JSDCLOUD-10908](https://jira.atlassian.com/browse/JSDCLOUD-10908)

Hope that helps.

comments: author: Dirk de Mello
body: Ok, but when a customer opens a ticket and forgets to change it to anyone, all other customers receive the ticket!

This is causing a lot of hassle!


Tags: cloud

jira-service-management

jira-service-management-cloud
Can you attach an email to a software project the same as a service project?
Asked by Caleb Erickson:

Essentially wondering this because I want to do a power automate flow based off of a bookings page. That way when an appointment is booked then it will create a ticket in Jira for us. Would there be any additional costs as well?

Thanks!


Answers:
author: Melo
body: Hi [@Caleb Erickson](/t5/user/viewprofilepage/user-id/5456453) Welcome to the community!   
You can set up a configuration to create issues and comments from email in Jira (Work Management, Software) not using a JSM project. Although it might not exactly match what you're looking for. For more details, check out: <https://support.atlassian.com/jira-cloud-administration/docs/create-issues-and-comments-from-email/>

I hope this helps!

Cheers,

Melo


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there a way to change the value of a custom field based on other custom field value
Asked by Rahul Krishna Vangara:

Trying to find a way to change the value of a field when a value is chosen on another custom field from a large number of values,

I am not familiar with JSM but I know in Jira software we can do it with scriptrunner but is there a way we can do it without hard coding all the custom field options in script.

I read about dynamic forms in JSM but I do not know if it satisfies our requirements.

we have a numerous values that we need to match.

Any help would be appreciated.


Answers:
author: Rahul Krishna Vangara
body: To expand on the question I have a field called customer and I have a field called customer base.

If I choose customer as London.

Customer base should change to United kingdom

If I choose customer as Sydney

Customer base should change to Australia.

....

etc.,

I know I can acheive this using scripting fields or behaviours in scriptrunner, but I dont want to hardcode all the customers and customer bases in the script itself, is there any other way to do this other than asset management, we have scriptrunner.


author: Walter Buggenhout
body: Hi [@Rahul Krishna Vangara](/t5/user/viewprofilepage/user-id/5271307),

If you talk about JSM and large numbers of options in fields, I would suggest looking into the premium plan and assets. There is a learning curve before you'll be up and running, but the possibilities are quite extensive.

A good starting point would be [this asset and configuration management guide](https://www.atlassian.com/software/jira/service-management/product-guide/getting-started/asset-and-configuration-management#best-practices-and-tips).

Hope this helps!

comments: author: Rahul Krishna Vangara
body: Thanks Walter, Although I can achieve this using asset management feature I want to explore other options because my requirement is technically not at all related to this feature.


Tags: cloud

jira-service-management

jira-service-management-cloud
assign by request type
Asked by Kamil Askerov:

I need to do something like this: if customer select 1st request type then automaticaly creating the issue in the jira software and auto assigh to 1st people. If select 2nd request type then automaticaly creating the issue in the jira software and auto assigh to 2st people. If select 3nd request type then automaticaly creating the issue in the jira software and auto assigh to 3st people. My problem is how I can take information about request type from jira service managment to jira software? And how I can make the automation to auto assighn ? I can make the custome field in jira software issue and sent there information about request types. And then if selected necessary value assighn some people. ?


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Kamil Askerov](/t5/user/viewprofilepage/user-id/5450722)

As I understand JSM and Jira Software are in the same site/url.

You can create an automation rule to achieve that. To find request please use Customer request type field. Then you can clone ticket from JSM project to JS project. During cloning you can assign user to newly created ticket.

Here you have an example how to assign ticket based on other field - <https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/140670>

<br />

Regards,

Seba

comments: author: Kamil Askerov
body: thank you. I will try it


Tags: cloud

jira-service-management

jira-service-management-cloud
Can i give a Person specific acces to components in Projects tehy are not meant to see?
Asked by scherdin:

Hello Jira Community,  

i'd like to ask a question. We can't give access to a project to certain people, but they have to watch some of the tickets that are in the Project. Can I give them Permission to only see certain Tickets on the board?  

Kind Regards.


Answers:
author: Walter Buggenhout
body: Hi [@scherdin](/t5/user/viewprofilepage/user-id/5355602),

Access to tickets on the board requires people to have access to the project (browse project permission). As soon as you do that, you would make sure to apply security to all issues, so you can define at issue level which issues people can see or not. You can do that by implementing [issue level security](https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-security-schemes/).

Since you tagged this questions as related to JSM, you can also make these issues visible via the customer portal. The view they have is limited in that case. On the customer portal, people can see the tickets they created or the ones they are added to as request participant. If you have defined organisations, people can also see tickets shared with their organisation.

Hope this helps!


Tags: cloud

jira-service-management

jira-service-management-cloud

permission

ticket
Copy customfield out of parentissue into a subtask while creating it
Asked by Marian Kohn:

I want to copy a Information automatically out of a parentissue into a subtask, while creating it. Is this possible?


Answers:
author: Mark Segall
body: Hi [@Marian Kohn](/t5/user/viewprofilepage/user-id/4728516) - This is possible through Jira automation. You can do something like this as a baseline:

* TRIGGER: Issue Created
* CONDITION: Issue Type = Sub-Task
* ACTION: Edit Issue (your custom fields)
  * Select the **?** \>\> **Copy**
  * Select Copy from current and change to copy from parent

comments: author: Marian Kohn
body: Thanks for the fast reply!

Oh man its so simple but it worked. Thank you very much!


Tags: cloud

jira-service-management

jira-service-management-cloud
JQL query for all issuetype = sub-tasks that have a linked parent of an issue type
Asked by steven_allcock:

Hi,

I want to get a list of all sub tasks where they have a parent  

I.e

Issuetype = Sub-tasks and linkedParent = \[system\] Post Incident review

ive tried something link this but get nothing back  

project = TSD and issueType = Sub-task AND issue in linkedIssues("\[System\] Post-incident review")  

(Error: Issue '\[System\] Post-incident review' could not be found in function 'linkedIssues'.)

any ideas of how or even if this can be achieved without buying an addon


Answers:
author: Jack Brickey
body: Hi [@steven_allcock](/t5/user/viewprofilepage/user-id/5041850) , is the parent Issuetype "post incident review"? That is, are you trying to find all sub-task where the parent is "post incident review"? If so you cannot achieve this with native JQL. You would need an addon unless you wanted to do something like add a label to any sub-task of a PIR issue.

comments: author: steven_allcock
body: Hi Jack,  

yes thats right and what im trying to do.  

That's a good suggestion with the label i can do that!


author: Jack Brickey
body: Cool. You can set up automation for subtasks created in the future and for the preexisting subtasks you can use JQL to find the parents and comb thru them to add label. Of course you could trial an add on app and use the advanced JQL feature to find and add labels with bulk edit.


author: Hannes Obweger - JXL for Jira
body: Hi [@steven_allcock](/t5/user/viewprofilepage/user-id/5041850)

I'm glad you were able to resolve your issue! Just for future reference, if this is a problem you face more regularly: If you're open to solutions from the Atlassian Marketplace, this would be easy to do using the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2644795).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Excel or Google Sheets. It also comes with a number of so-called *smart columns* that aren't natively available, including the *parent issue type*.

This is how it looks in action:

![parent-issue-type.gif](https://community.atlassian.com/t5/image/serverpage/image-id/313567i16D70BA2EEE5559F/image-size/large?v=v2&px=999 "parent-issue-type.gif")

As you can see above, you can easily sort and filter by the parent issue type, and also use it across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

Any questions just let me know,

Best,

Hannes


Tags: cloud

jira-service-management

jira-service-management-cloud
How to migration users from Jira User Directory to internal Directory
Asked by pneyer:

Hi

Our Bitbucket Server uses User Directory from Jira Server.

Since we plan to migrate to Jira Cloud, Bitbucket Server can no longer use Jira User Directory...

How can you migrate all existing bitbucket users from an external user directory (Jira) to the internal bitbucket user directory, especially without losing all user-specific data, like ssh-keys, groups etc?


Answers:
author: pneyer
body: After some testing with deactivation of Jira-user-directory-sync, we checked how Bitbucket behaved and whether accounts and its details still remain in bitbucket server or not.

Based on the fact that user-specific settings like ssh-keys are created/managed on Bitbucket and not on the Jira user, this data must be persisted on Bitbucket server database.

So, answering my own question and how we did it:

* Login as a internal-user-directory admin- Disable "Jira User Directory Sync" on Bitbucket -\> Bitbucket runs now with internal user directory only
* Recreate all groups that were present and are missing now, with identical names  
  * Create a new bitbucket account per user that existed before, take care same E-Mail address is used!
* User receives "Welcome to Atlassian Bitbucket"-E-Mail to setup new password
* Move "new" User to correct/same groups as it was configured before via Jira user directory

Note: All user-specific configs like ssh-keys still exist afterwards  
Note2: This process could probably be automated using bitbucket API

Hope this helps anybody running into the same requirements


author: mp technology
body: delete


Tags: bitbucket-server

server
Unable to Authenticate Bitbucket in vscode
Asked by raja.ram-v:

Hi,

I'm trying to sign in to Bitbucket using VScode extension(Jira and Bitbucket),but it displays the following error message![Screenshot 2023-03-14 at 9.13.53 PM.png](/t5/image/serverpage/image-id/245529iEEF9B49677ACE029/image-size/large?v=v2&px=999 "Screenshot 2023-03-14 at 9.13.53 PM.png")


Answers:
author: Patrik S
body: Hello [@raja.ram-v](/t5/user/viewprofilepage/user-id/5169792) ,

Welcome to Atlassian Community!

The error being returned is related to a failing authentication.

In order to investigate further I would like to ask the following :

1. Could you please share with us the exact steps you are taking until reaching that error page?

2. If you try logging in on the bitbucket UI (<https://bitbucket.org>) using the same credentials, is the login successful?

3. When connecting the extension to Bitbucket Cloud, were you redirected to a page like the one below to Grant access? If yes, does the error happen after clicking on the **Grant access** button?

![Screenshot 2023-03-16 at 9.28.11 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/245910i840AD036D39D1830/image-dimensions/355x300?v=v2 "Screenshot 2023-03-16 at 9.28.11 AM.png")

Let me know in case you have any questions.

Thank you, [@raja.ram-v](/t5/user/viewprofilepage/user-id/5169792) !

Patrik S

comments: author: raja.ram-v
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

I can access the Bitbucket UI (<https://bitbucket.org>) in a browser by entering my Email ID and Password.

Steps:

1.Signing in the Browser with my email

2.Trying to sign in using Login to Bitbucket Cloud in the VScode extension (Jira and Bitbucket).

![Screenshot 2023-03-16 at 6.10.09 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/245911i766ACE225EB6B2BF/image-dimensions/327x288?v=v2 "Screenshot 2023-03-16 at 6.10.09 PM.png")

3.Login to bitbucket cloud button redirects to Grand access Page in browser after clicking on the **Grant access** button it displays the error .


author: Patrik S
body: Hello [@raja.ram-v](/t5/user/viewprofilepage/user-id/5169792) ,

I created an internal ticket for us to investigate further. You should soon be receiving the ticket link in the e-mail of your community account. In case you don't receive it, please let me know so I can share it with you here.

Thank you, [@raja.ram-v](/t5/user/viewprofilepage/user-id/5169792) !

Patrik S


author: Robert Condon
body: Hi,   
What was the resolution of this error please? I am seeing the same issue

thanks


Tags: bitbucket-cloud

cloud